use macro instead of stock for class macro

This commit is contained in:
Lorenc Pekaj 2018-07-06 10:01:13 +10:00
parent 56d8672f46
commit d71f2da099

View File

@ -8,6 +8,9 @@
/* ** Includes ** */
#include < YSI\y_hooks >
/* ** Functions ** */
#define GetPlayerClass(%0) (p_Class[%0])
/* ** Definitions ** */
#define CLASS_CIVILIAN ( 0 )
#define CLASS_POLICE ( 1 )
@ -26,6 +29,4 @@ stock CLASS_FIRE_RANGE [ 2 ];
stock CLASS_MEDIC_RANGE [ 2 ];
stock CLASS_ARMY_RANGE;
/* ** Hooks ** */
/* ** Functions ** */
new p_Class [ MAX_PLAYERS ];