Ignore:
Timestamp:
Mar 2, 2008, 5:07:11 PM (11 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of game registration handling. All versions of Abuse are now registered, I guess.
File:
1 edited

Legend:

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

    r60 r61  
    3030#define DFRIS    6
    3131#define LSABER   7
    32 
    33 extern int registered;
    3432
    3533signed char small_fire_off[24*2]=  // x & y offset from character to end of gun.
     
    452450    case FLY_POWER :
    453451    {
    454       if (registered)
    455       {
    456         game_object *cloud=create(S_CLOUD,o->x+o->direction*-10,o->y+jrand()%5);
    457         if (current_level)
     452      game_object *cloud=create(S_CLOUD,o->x+o->direction*-10,o->y+jrand()%5);
     453      if (current_level)
    458454        current_level->add_object(cloud);
    459         o->set_state(run_jump);
    460         o->set_gravity(1);
    461         o->set_yacel(0);
    462         if (o->yvel()>0) o->set_yvel(o->yvel()/2);
    463         if (ym<0)
     455      o->set_state(run_jump);
     456      o->set_gravity(1);
     457      o->set_yacel(0);
     458      if (o->yvel()>0) o->set_yvel(o->yvel()/2);
     459      if (ym<0)
    464460        o->set_yvel(o->yvel()-3);
    465         else
     461      else
    466462        o->set_yvel(o->yvel()-2);
    467         the_game->play_sound(S_FLY_SND,32,o->x,o->y);
    468       }
     463      the_game->play_sound(S_FLY_SND,32,o->x,o->y);
    469464    } break;
    470465    case FAST_POWER :
     
    489484    case SNEAKY_POWER :
    490485    {
    491       if (registered)
    492       {
    493         if (o->lvars[used_special_power]<15)
    494           o->lvars[used_special_power]++;
    495       }
     486      if (o->lvars[used_special_power]<15)
     487        o->lvars[used_special_power]++;
    496488    } break;
    497489  }
Note: See TracChangeset for help on using the changeset viewer.