Rev 18 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 18 | Rev 20 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #include "powerup.h" |
1 | #include "powerup.h" |
2 | #include "brender.h" |
2 | #include "brender/brender.h" |
3 | #include "car.h" |
3 | #include "car.h" |
4 | #include "controls.h" |
4 | #include "controls.h" |
5 | #include "crush.h" |
5 | #include "crush.h" |
6 | #include "displays.h" |
6 | #include "displays.h" |
7 | #include "errors.h" |
7 | #include "errors.h" |
Line 140... | Line 140... | ||
140 | int gNumber_of_powerups; |
140 | int gNumber_of_powerups; |
141 | int gFizzle_height; |
141 | int gFizzle_height; |
142 | int gNumber_of_icons; |
142 | int gNumber_of_icons; |
143 | tPowerup* gPowerup_array; |
143 | tPowerup* gPowerup_array; |
144 | 144 | ||
145 | #define GET_POWERUP_INDEX(POWERUP) ((POWERUP)-gPowerup_array) |
145 | #define GET_POWERUP_INDEX(POWERUP) (((POWERUP)-gPowerup_array) / sizeof(tPowerup)) |
146 | 146 | ||
147 | // IDA: void __usercall LosePowerupX(tPowerup *pThe_powerup@<EAX>, int pTell_net_players@<EDX>) |
147 | // IDA: void __usercall LosePowerupX(tPowerup *pThe_powerup@<EAX>, int pTell_net_players@<EDX>) |
148 | void LosePowerupX(tPowerup* pThe_powerup, int pTell_net_players) { |
148 | void LosePowerupX(tPowerup* pThe_powerup, int pTell_net_players) { |
149 | int i; |
149 | int i; |
150 | tNet_message* the_message; |
150 | tNet_message* the_message; |