bugfix: players were incorreclty starting with the speed powerup

This commit is contained in:
Rob Pearce 2009-03-19 20:21:19 +00:00
parent dac701d44a
commit 5623a6484e
2 changed files with 18 additions and 24 deletions

View File

@ -1,10 +1,2 @@
all: rc edit
rc: rc.c shared.c rc.h shared.h globals.h defs.h
gcc -O3 -Wall -DREV=`./getsvnrev.sh` -o rc -g rc.c shared.c `sdl-config --cflags --libs` -I/usr/local/include -L/sw/lib -L/usr/local/lib -L/opt/local/lib -lSDLmain -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf -lSDL_mixer
edit: edit.c shared.c edit.h shared.h globals.h defs.h
gcc -D__EDITOR -DREV=`./getsvnrev.sh` -Wall -o edit -g edit.c shared.c `sdl-config --cflags --libs` -I/usr/local/include -L/sw/lib -lSDLmain -lSDL -lSDL_image -lSDL_ttf -L/opt/local/lib -lSDL_gfx
app: rc
./makeapp.sh
rc: rc.c rc.h
gcc -Wall -DREV=`./getsvnrev.sh` -orc -g rc.c shared.c `sdl-config --cflags --libs` -I/usr/local/include -L/usr/local/lib -lSDLmain -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf -lSDL_mixer

View File

@ -676,6 +676,7 @@ printf(".\n");
void setdefaults(sprite_t *s) {
if (isplayer(s)) {
// set permenant powerups based on level
if (curlevelnum != INTRO_LEVELNUM) {
if (curlevelnum > 20) {
s->permspeed = B_TRUE;
} else {
@ -691,6 +692,7 @@ void setdefaults(sprite_t *s) {
} else {
s->permumbrella = B_FALSE;
}
}
// player powerup stats
if (s->permspeed) {