Fixed behaviour of bad magnet (skull)
This commit is contained in:
parent
a1a0408ddc
commit
2c3b50fe8c
2
rc.c
2
rc.c
|
@ -8541,7 +8541,7 @@ int dofruiteffect(sprite_t *pp, sprite_t *s) {
|
|||
playfx(FX_SKULL);
|
||||
sprintf(tempm, "Repel fruits!");
|
||||
addoutlinetext(s->x,s->y - s->img->h/2, TEXTSIZE_POINTS, tempm,&black,&grey,POINTSDELAY, TT_NORM);
|
||||
pp->powerup = PW_MAGNET;
|
||||
pp->powerup = PW_BADMAGNET;
|
||||
return B_TRUE;
|
||||
} else if (s->id == P_ANCHOR) {
|
||||
playfx(FX_MORPH);
|
||||
|
|
2
shared.c
2
shared.c
|
@ -1151,6 +1151,7 @@ int loadtiletypes(char *filename) {
|
|||
//strcat(imagefile, "/");
|
||||
//strcat(imagefile, p);
|
||||
|
||||
//t->img[frame] = IMG_Load(imagefile);
|
||||
t->img[frame] = IMG_Load(imagefile);
|
||||
if (!t->img[frame]) {
|
||||
printf("cannot load tile image file: '%s'\n",imagefile);
|
||||
|
@ -1858,6 +1859,7 @@ int loadimagesets(void) {
|
|||
printf("error rotozooming sprite %d, deadimage %d\n",p,fr);
|
||||
exit(1);
|
||||
}
|
||||
SDL_SetColorKey(tempimg, SDL_RLEACCEL, 0);
|
||||
imageset[p].img[fr] = SDL_DisplayFormat(tempimg);
|
||||
SDL_FreeSurface(tempimg);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue