mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-29 16:54:56 +02:00
Stop player's money from being negative
This commit is contained in:
parent
73727edb6c
commit
65e9fddb6d
@ -238,6 +238,9 @@
|
|||||||
Case "removemoney"
|
Case "removemoney"
|
||||||
Core.Player.Money -= int(argument)
|
Core.Player.Money -= int(argument)
|
||||||
|
|
||||||
|
If Core.Player.Money < 0 Then
|
||||||
|
Core.Player.Money = 0
|
||||||
|
End If
|
||||||
IsReady = True
|
IsReady = True
|
||||||
Case "setmovement"
|
Case "setmovement"
|
||||||
Dim movements() As String = argument.Split(CChar(","))
|
Dim movements() As String = argument.Split(CChar(","))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user