mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Added a few macros to validate vehicle color identifiers.
This commit is contained in:
parent
0ebdecb75f
commit
491ead2b12
@ -299,6 +299,9 @@ class LocalEvent;
|
||||
#define VALID_ENTITYGET(e) ((e >= 0) ? e : -1)
|
||||
#define VALID_ENTITYGETEX(e, m) ((e >= 0) && (e < m) ? e : -1)
|
||||
|
||||
#define VALID_VEHCOL(e) ((e >= 0) && (e <= 94))
|
||||
#define INVALID_VEHCOL(e) ((e < 0) && (e > 94))
|
||||
|
||||
// Character Buffer Elements Count (n = buffer bytes / char size)
|
||||
#define SQMOD_CHBUFEC(n) (n / sizeof(SQChar))
|
||||
// Character Buffer Bytes Count (n = buffer chars * char size)
|
||||
|
Loading…
Reference in New Issue
Block a user