Mapster32 tag-label system: don't consider 'switch' walls with an upwall as linking.

git-svn-id: https://svn.eduke32.com/eduke32@2496 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-03-18 23:16:37 +00:00
parent cf2b9ec940
commit 68603b0a28

View file

@ -638,6 +638,7 @@ int32_t map_undoredo(int32_t dir)
} }
#endif #endif
#define M32_NUM_SPRITE_MODES ((signed)(sizeof(SpriteMode)/sizeof(SpriteMode[0]))) #define M32_NUM_SPRITE_MODES ((signed)(sizeof(SpriteMode)/sizeof(SpriteMode[0])))
static const char *SpriteMode[]= static const char *SpriteMode[]=
{ {
@ -1173,18 +1174,24 @@ int32_t taglab_linktags(int32_t spritep, int32_t num)
} }
else // walls else // walls
{ {
#ifdef YAX_ENABLE
if (yax_getnextwall(num, YAX_CEILING) < 0)
#endif
switch (picnum) switch (picnum)
{ {
case TECHLIGHT2: case TECHLIGHT4: case WALLLIGHT4: case TECHLIGHT2: case TECHLIGHT4: case WALLLIGHT4:
case WALLLIGHT3: case WALLLIGHT1: case WALLLIGHT2: case WALLLIGHT3: case WALLLIGHT1: case WALLLIGHT2:
case BIGFORCE: case W_FORCEFIELD: case BIGFORCE: case W_FORCEFIELD:
// if (sprite[num].lotag > 0) // if (wall[num].lotag > 0)
link = 1; link = 1;
break; break;
} }
} }
if (!link) if (!link)
#ifdef YAX_ENABLE
if (spritep || yax_getnextwall(num, YAX_CEILING) < 0)
#endif
{ {
// try a few that work both as sprites and as walls // try a few that work both as sprites and as walls
switch (picnum) switch (picnum)