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 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
|
||||||
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
|
|
||||||
|
|
2
shared.c
2
shared.c
|
@ -676,6 +676,7 @@ printf(".\n");
|
||||||
void setdefaults(sprite_t *s) {
|
void setdefaults(sprite_t *s) {
|
||||||
if (isplayer(s)) {
|
if (isplayer(s)) {
|
||||||
// set permenant powerups based on level
|
// set permenant powerups based on level
|
||||||
|
if (curlevelnum != INTRO_LEVELNUM) {
|
||||||
if (curlevelnum > 20) {
|
if (curlevelnum > 20) {
|
||||||
s->permspeed = B_TRUE;
|
s->permspeed = B_TRUE;
|
||||||
} else {
|
} else {
|
||||||
|
@ -691,6 +692,7 @@ void setdefaults(sprite_t *s) {
|
||||||
} else {
|
} else {
|
||||||
s->permumbrella = B_FALSE;
|
s->permumbrella = B_FALSE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// player powerup stats
|
// player powerup stats
|
||||||
if (s->permspeed) {
|
if (s->permspeed) {
|
||||||
|
|
Loading…
Reference in New Issue