mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-02 09:12:54 +00:00
Make a commented out debug code account for taglists.
This commit is contained in:
parent
e59480e4cf
commit
61c3e12d63
1 changed files with 6 additions and 3 deletions
|
@ -12342,12 +12342,14 @@ void P_PlayerThink(player_t *player)
|
||||||
sector_t *controlsec;
|
sector_t *controlsec;
|
||||||
for (j=0; j<numsectors; j++)
|
for (j=0; j<numsectors; j++)
|
||||||
{
|
{
|
||||||
|
mtag_t sectag = Tag_FGet(§ors[j].tags);
|
||||||
controlsec = NULL;
|
controlsec = NULL;
|
||||||
// Does this sector have a water linedef?
|
// Does this sector have a water linedef?
|
||||||
for (i=0; i<numlines;i++)
|
for (i=0; i<numlines;i++)
|
||||||
{
|
{
|
||||||
|
mtag_t linetag = Tag_FGet(&lines[i].tags);
|
||||||
if ((lines[i].special == 121 || lines[i].special == 123)
|
if ((lines[i].special == 121 || lines[i].special == 123)
|
||||||
&& lines[i].tag == sectors[j].tag)
|
&& linetag == sectag)
|
||||||
{
|
{
|
||||||
controlsec = lines[i].frontsector;
|
controlsec = lines[i].frontsector;
|
||||||
break;
|
break;
|
||||||
|
@ -12356,15 +12358,16 @@ void P_PlayerThink(player_t *player)
|
||||||
|
|
||||||
if (i < numlines && controlsec)
|
if (i < numlines && controlsec)
|
||||||
{
|
{
|
||||||
|
controlsectag = Tag_FGet(&controlsec->tags);
|
||||||
// Does this sector have a colormap?
|
// Does this sector have a colormap?
|
||||||
for (i=0; i<numlines;i++)
|
for (i=0; i<numlines;i++)
|
||||||
{
|
{
|
||||||
if (lines[i].special == 606 && lines[i].tag == controlsec->tag)
|
if (lines[i].special == 606 && linetag == controlsectag)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i == numlines)
|
if (i == numlines)
|
||||||
CONS_Debug(DBG_GAMELOGIC, "%d, %d\n", j, sectors[j].tag);
|
CONS_Debug(DBG_GAMELOGIC, "%d, %d\n", j, sectag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue