bugfix: players were incorreclty starting with the speed powerup
This commit is contained in:
parent
dac701d44a
commit
5623a6484e
12
Makefile
12
Makefile
|
@ -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
|
||||
|
|
30
shared.c
30
shared.c
|
@ -676,20 +676,22 @@ printf(".\n");
|
|||
void setdefaults(sprite_t *s) {
|
||||
if (isplayer(s)) {
|
||||
// set permenant powerups based on level
|
||||
if (curlevelnum > 20) {
|
||||
s->permspeed = B_TRUE;
|
||||
} else {
|
||||
s->permspeed = B_FALSE;
|
||||
}
|
||||
if (curlevelnum > 40) {
|
||||
s->permmask = B_TRUE;
|
||||
} else {
|
||||
s->permmask = B_FALSE;
|
||||
}
|
||||
if (curlevelnum > 60) {
|
||||
s->permumbrella = B_TRUE;
|
||||
} else {
|
||||
s->permumbrella = B_FALSE;
|
||||
if (curlevelnum != INTRO_LEVELNUM) {
|
||||
if (curlevelnum > 20) {
|
||||
s->permspeed = B_TRUE;
|
||||
} else {
|
||||
s->permspeed = B_FALSE;
|
||||
}
|
||||
if (curlevelnum > 40) {
|
||||
s->permmask = B_TRUE;
|
||||
} else {
|
||||
s->permmask = B_FALSE;
|
||||
}
|
||||
if (curlevelnum > 60) {
|
||||
s->permumbrella = B_TRUE;
|
||||
} else {
|
||||
s->permumbrella = B_FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
// player powerup stats
|
||||
|
|
Loading…
Reference in New Issue