mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Rename ValidLock to IsLockDefined (more descriptive).
This commit is contained in:
parent
b85add01c7
commit
6f8901ea87
4 changed files with 5 additions and 5 deletions
|
@ -517,7 +517,7 @@ int P_CheckKeys (AActor *owner, int keynum, bool remote, bool quiet)
|
|||
}
|
||||
|
||||
// [MK] for ZScript, simply returns if a lock is defined or not
|
||||
int P_ValidLock(int keynum)
|
||||
int P_IsLockDefined(int keynum)
|
||||
{
|
||||
return !!Locks.CheckKey(keynum);
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ class AActor;
|
|||
class PClassActor;
|
||||
|
||||
int P_CheckKeys (AActor *owner, int keynum, bool remote, bool quiet = false);
|
||||
int P_ValidLock (int lock);
|
||||
int P_IsLockDefined (int lock);
|
||||
void P_InitKeyMessages ();
|
||||
int P_GetMapColorForLock (int lock);
|
||||
int P_GetMapColorForKey (AActor *key);
|
||||
|
|
|
@ -1749,11 +1749,11 @@ DEFINE_ACTION_FUNCTION_NATIVE(AInventory, PrintPickupMessage, PrintPickupMessage
|
|||
//
|
||||
//=====================================================================================
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(AKey, ValidLock, P_ValidLock)
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(AKey, IsLockDefined, P_IsLockDefined)
|
||||
{
|
||||
PARAM_PROLOGUE;
|
||||
PARAM_INT(locknum);
|
||||
ACTION_RETURN_BOOL(P_ValidLock(locknum));
|
||||
ACTION_RETURN_BOOL(P_IsLockDefined(locknum));
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(AKey, GetMapColorForLock, P_GetMapColorForLock)
|
||||
|
|
|
@ -37,7 +37,7 @@ class Key : Inventory
|
|||
Inventory.PickupSound "misc/k_pkup";
|
||||
}
|
||||
|
||||
static native clearscope bool ValidLock(int locknum);
|
||||
static native clearscope bool IsLockDefined(int locknum);
|
||||
static native clearscope Color GetMapColorForLock(int locknum);
|
||||
static native clearscope Color GetMapColorForKey(Key key);
|
||||
static native clearscope int GetKeyTypeCount();
|
||||
|
|
Loading…
Reference in a new issue