(svn r3304) -Add: allow AI-events to see the UID of the command

-Fix: improved the logic of the UID code for AIs
This commit is contained in:
truelight
2005-12-14 14:38:23 +00:00
parent f6330faead
commit f94da63a8d
4 changed files with 34 additions and 11 deletions

View File

@@ -13,7 +13,7 @@
* tell us ASAP! */
# define ai_event(player, event, ...) \
if ((player) < MAX_PLAYERS && _ai_player[(player)].module != NULL) \
gpmi_event(_ai_player[(player)].module, (event), ##__VA_ARGS__)
gpmi_event(_ai_player[(player)].module, (event), _ai_current_uid, ##__VA_ARGS__)
#else /* GPMI */