Ignore:
Timestamp:
Nov 10, 2005, 9:41:13 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • absolute shitloads of 64 bit fixes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/compiled.cpp

    r2 r17  
    66extern int total_objects;
    77
    8 uchar *bad_guy_array=NULL;    // list flaging each character saying they are a bad bug or not
     8uint8_t *bad_guy_array=NULL;  // list flaging each character saying they are a bad bug or not
    99                              // mainly used by the rocket to find targets
    1010
    11 long S_fall_start,S_falling,S_landing,S_pounce_wait,
     11int32_t S_fall_start,S_falling,S_landing,S_pounce_wait,
    1212     S_turn_around,S_fire_wait,S_ceil_fire,S_top_walk,
    1313     S_blown_back_dead,S_jump_up,S_hiding,S_weapon_fire,
     
    2828int compile_error=0;
    2929
    30 long c_state(char *name)
     30int32_t c_state(char *name)
    3131{
    3232  void *sym=find_symbol(name);
     
    114114  {
    115115    b=symbol_value(b);
    116     bad_guy_array=(uchar *)jmalloc(total_objects,"bad_guy_array");
     116    bad_guy_array=(uint8_t *)jmalloc(total_objects,"bad_guy_array");
    117117    memset(bad_guy_array,0,total_objects);
    118118    while (b)
    119119    {
    120       long x=lnumber_value(CAR(b));
     120      int32_t x=lnumber_value(CAR(b));
    121121      if (x>=0 && x<total_objects)
    122122        bad_guy_array[x]=1;
Note: See TracChangeset for help on using the changeset viewer.