Add CONS_Alert warning as toaster suggested

This commit is contained in:
Monster Iestyn 2017-05-01 19:34:53 +01:00
parent 21950687ed
commit 7f936d8b57

View file

@ -3167,8 +3167,16 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
INT32 viewid = sides[line->sidenum[0]].textureoffset>>FRACBITS; INT32 viewid = sides[line->sidenum[0]].textureoffset>>FRACBITS;
INT32 centerid = sides[line->sidenum[0]].rowoffset>>FRACBITS; INT32 centerid = sides[line->sidenum[0]].rowoffset>>FRACBITS;
if ((line->flags & (ML_EFFECT4|ML_BLOCKMONSTERS)) == ML_EFFECT4) // Solid Midtexture is on but Block Enemies is off?
{
CONS_Alert(CONS_WARNING,
M_GetText("Skybox switch linedef (tag %d) doesn't have anything to do.\nConsider changing the linedef's flag configuration or removing it entirely.\n"),
line->tag);
}
else
{
// set viewpoint mobj // set viewpoint mobj
if (!(line->flags & ML_EFFECT4)) if (!(line->flags & ML_EFFECT4)) // Solid Midtexture turns off viewpoint setting
{ {
if (viewid >= 0 && viewid < 16) if (viewid >= 0 && viewid < 16)
skyboxmo[0] = skyboxviewpnts[viewid]; skyboxmo[0] = skyboxviewpnts[viewid];
@ -3177,13 +3185,14 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
} }
// set centerpoint mobj // set centerpoint mobj
if (line->flags & ML_BLOCKMONSTERS) if (line->flags & ML_BLOCKMONSTERS) // Block Enemies turns ON centerpoint setting
{ {
if (centerid >= 0 && centerid < 16) if (centerid >= 0 && centerid < 16)
skyboxmo[1] = skyboxcenterpnts[centerid]; skyboxmo[1] = skyboxcenterpnts[centerid];
else else
skyboxmo[1] = NULL; skyboxmo[1] = NULL;
} }
}
CONS_Debug(DBG_GAMELOGIC, "Line type 448 Executor: viewid = %d, centerid = %d, viewpoint? = %s, centerpoint? = %s\n", CONS_Debug(DBG_GAMELOGIC, "Line type 448 Executor: viewid = %d, centerid = %d, viewpoint? = %s, centerpoint? = %s\n",
viewid, viewid,