Subversion Repositories Games.Rick Dangerous

Rev

Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 11
Line 26... Line 26...
26
 * public vars
26
 * public vars
27
 */
27
 */
28
S16 e_rick_stop_x = 0;
28
S16 e_rick_stop_x = 0;
29
S16 e_rick_stop_y = 0;
29
S16 e_rick_stop_y = 0;
30
U8 e_rick_state = 0;
30
U8 e_rick_state = 0;
-
 
31
 
-
 
32
extern U8 want_infiniteammo;
31
 
33
 
32
/*
34
/*
33
 * local vars
35
 * local vars
34
 */
36
 */
35
static U8 scrawl;
37
static U8 scrawl;
Line 327... Line 329...
327
      /* already a bullet in the air ... that's enough */
329
      /* already a bullet in the air ... that's enough */
328
      if (E_BULLET_ENT.n)
330
      if (E_BULLET_ENT.n)
329
         return;
331
         return;
330
 
332
 
331
      /* else use a bullet, if any available */
333
      /* else use a bullet, if any available */
332
      if (!game_bullets)
334
      if (!want_infiniteammo && !game_bullets)
333
         return;
335
         return;
334
 
336
 
335
      /* initialize bullet */
337
      /* initialize bullet */
336
      e_bullet_init (E_RICK_ENT.x, E_RICK_ENT.y);
338
      e_bullet_init (E_RICK_ENT.x, E_RICK_ENT.y);
-
 
339
      if (!want_infiniteammo)
337
      game_bullets--;
340
         game_bullets--;
338
      return;
341
      return;
339
   }
342
   }
340
 
343
 
341
   trigger = FALSE; /* not shooting means trigger is released */
344
   trigger = FALSE; /* not shooting means trigger is released */
342
   seq = 0; /* reset */
345
   seq = 0; /* reset */
Line 347... Line 350...
347
      /* already a bomb ticking ... that's enough */
350
      /* already a bomb ticking ... that's enough */
348
      if (E_BOMB_ENT.n)
351
      if (E_BOMB_ENT.n)
349
         return;
352
         return;
350
 
353
 
351
      /* else use a bomb, if any available */
354
      /* else use a bomb, if any available */
352
      if (!game_bombs)
355
      if (!want_infiniteammo && !game_bombs)
353
         return;
356
         return;
354
 
357
 
355
      /* initialize bomb */
358
      /* initialize bomb */
356
      e_bomb_init (E_RICK_ENT.x, E_RICK_ENT.y);
359
      e_bomb_init (E_RICK_ENT.x, E_RICK_ENT.y);
-
 
360
      if (!want_infiniteammo)
357
      game_bombs--;
361
         game_bombs--;
358
      return;
362
      return;
359
   }
363
   }
360
 
364
 
361
   return;
365
   return;
362
 
366