Changeset 17 for abuse/trunk/src/compiled.cpp
- Timestamp:
- Nov 10, 2005, 9:41:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/compiled.cpp
r2 r17 6 6 extern int total_objects; 7 7 8 u char *bad_guy_array=NULL;// list flaging each character saying they are a bad bug or not8 uint8_t *bad_guy_array=NULL; // list flaging each character saying they are a bad bug or not 9 9 // mainly used by the rocket to find targets 10 10 11 longS_fall_start,S_falling,S_landing,S_pounce_wait,11 int32_t S_fall_start,S_falling,S_landing,S_pounce_wait, 12 12 S_turn_around,S_fire_wait,S_ceil_fire,S_top_walk, 13 13 S_blown_back_dead,S_jump_up,S_hiding,S_weapon_fire, … … 28 28 int compile_error=0; 29 29 30 longc_state(char *name)30 int32_t c_state(char *name) 31 31 { 32 32 void *sym=find_symbol(name); … … 114 114 { 115 115 b=symbol_value(b); 116 bad_guy_array=(u char*)jmalloc(total_objects,"bad_guy_array");116 bad_guy_array=(uint8_t *)jmalloc(total_objects,"bad_guy_array"); 117 117 memset(bad_guy_array,0,total_objects); 118 118 while (b) 119 119 { 120 longx=lnumber_value(CAR(b));120 int32_t x=lnumber_value(CAR(b)); 121 121 if (x>=0 && x<total_objects) 122 122 bad_guy_array[x]=1;
Note: See TracChangeset
for help on using the changeset viewer.