Introduce CHRRACE macro

This commit is contained in:
Ryan Dwyer
2020-02-15 13:58:07 +10:00
parent 44db635751
commit f5ed45ea10
3 changed files with 20 additions and 35 deletions
+1
View File
@@ -5,6 +5,7 @@
#define true 1
#define ABS(val) (val > 0 ? val : -val)
#define CHRRACE(chr) (chr ? chr->race : RACE_HUMAN)
#define PLAYERCOUNT() ((g_Vars.players[0] ? 1 : 0) + (g_Vars.players[1] ? 1 : 0) + (g_Vars.players[2] ? 1 : 0) + (g_Vars.players[3] ? 1 : 0))
#define PLAYERCOUNT3012() ((g_Vars.players[3] ? 1 : 0) + (g_Vars.players[0] ? 1 : 0) + (g_Vars.players[1] ? 1 : 0) + (g_Vars.players[2] ? 1 : 0))