Simplified isplacablesprite() in edit.c

Changed background of tile palette in editor
This commit is contained in:
Rob Pearce 2008-11-06 02:21:49 +00:00
parent 0aeb322c0e
commit be2905f66b
2 changed files with 5 additions and 65 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 822 B

After

Width:  |  Height:  |  Size: 822 B

68
edit.c
View File

@ -1019,72 +1019,12 @@ int isplacabletile(int tid) {
}
int isplacablesprite(int sid) {
switch (sid) {
case P_SPEED:
case P_NUMNETS:
case P_BIGNET:
case P_BLACKCLOUD:
case P_PINKCLOUD:
case P_SPIT:
case P_PUFF:
case P_SMASH:
case P_BOXING:
case P_GLOVE:
case P_DIAMOND:
case P_FTODIAMOND:
case P_FTOGEM:
case P_BOMB:
case P_SHIELD:
case P_MACEPOWERUP:
case P_MACE:
case P_GEMRED:
case P_GEMYELLOW:
case P_GEMPURPLE:
case P_SPRAY:
case P_CANNONPOWERUP:
case P_CANNON:
case P_TROPHY:
case P_SNOWMAN:
case P_RINGSILVER:
case P_RINGGOLD:
case P_CLOCK:
case P_BELL:
case P_ARMOUR:
case P_GEMBOOST:
case P_HELMET:
case P_PHONE:
case P_BUBBLE:
case P_HONEY:
case P_STARPOWERUP:
case P_STAR:
case P_UFO:
case P_METEOR:
case P_LIFE:
case P_BIGSPEED:
case P_BIGNUMNETS:
case P_MOVINGCARD:
case P_FIVECARDS:
case P_MASKPOWERUP:
case P_MASK:
case P_TAP:
case P_CLOVER:
case P_SKULL:
case P_WINGLEFT:
case P_WINGRIGHT:
case P_WINGBOOTS:
case P_ACCORDION:
case P_GUN:
case P_ZAPPOWERUP:
return B_FALSE;
}
if (sid == P_HELP) return B_TRUE;
if (sid == P_POWERUPPOS) return B_TRUE;
if (ismonster(sid) && (sid != P_BLACKCLOUD)) return B_TRUE;
if (isfruit(sid) == FT_GEM) return B_TRUE;
if (iseffect(sid) && (sid != P_POWERUPPOS)) {
return B_FALSE;
}
if (iscard(sid)) {
return B_FALSE;
}
return B_TRUE;
}
// like drawtile but adjusts transparncy based on current layer