mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-04-07 18:42:36 +00:00
Fixed setinv cheat
This commit is contained in:
parent
d0e056565b
commit
345926f057
2 changed files with 2 additions and 2 deletions
|
@ -570,7 +570,7 @@ FString cht_Morph(player_t *player, PClassActor *morphclass, bool quickundo)
|
|||
void cht_SetInv(player_t *player, const char *string, int amount, bool beyond)
|
||||
{
|
||||
if (!player->mo) return;
|
||||
IFVIRTUALPTRNAME(player->mo, NAME_PlayerPawn, CheatTakeInv)
|
||||
IFVIRTUALPTRNAME(player->mo, NAME_PlayerPawn, CheatSetInv)
|
||||
{
|
||||
FString message = string;
|
||||
VMValue params[] = { player->mo, &message, amount, beyond };
|
||||
|
|
|
@ -403,7 +403,7 @@ extend class PlayerPawn
|
|||
|
||||
virtual void CheatSetInv(String strng, int amount, bool beyond)
|
||||
{
|
||||
if (!(strng ~== "health"))
|
||||
if (strng ~== "health")
|
||||
{
|
||||
if (amount <= 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue