Fixed behaviour of bad magnet (skull)

This commit is contained in:
Rob Pearce 2008-12-23 01:03:11 +00:00
parent a1a0408ddc
commit 2c3b50fe8c
2 changed files with 3 additions and 1 deletions

2
rc.c
View File

@ -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);

View File

@ -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);
}