Changeset 60 for ttyvaders/trunk/src/collide.c
- Timestamp:
- Dec 23, 2002, 2:46:27 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ttyvaders/trunk/src/collide.c
r50 r60 4 4 * All Rights Reserved 5 5 * 6 * $Id: collide.c,v 1. 8 2002/12/23 09:28:37 sam Exp $6 * $Id: collide.c,v 1.9 2002/12/23 13:46:27 sam Exp $ 7 7 * 8 8 * This program is free software; you can redistribute it and/or modify … … 262 262 void collide_player_tunnel( game *g, player *p, tunnel *t, explosions *ex ) 263 263 { 264 if( p->dead ) 265 { 266 return; 267 } 268 264 269 if( p->x <= t->left[p->y] ) 265 270 { 266 271 p->x += 2; 267 272 add_explosion( g, ex, p->x+1, p->y-2, 0, 0, EXPLOSION_SMALL ); 273 p->life -= 50; 268 274 } 269 275 else if( p->x + 5 >= t->right[p->y] ) … … 271 277 p->x -= 2; 272 278 add_explosion( g, ex, p->x+4, p->y-2, 0, 0, EXPLOSION_SMALL ); 279 p->life -= 50; 273 280 } 274 281 }
Note: See TracChangeset
for help on using the changeset viewer.