Skip to content

Commit

Permalink
Minor tweaks to output of mapstats cmd in console
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Oct 20, 2015
1 parent c9b3d41 commit 1822041
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 5 additions & 3 deletions src/c_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -1683,15 +1683,17 @@ static void mapstats_cmd_func2(char *cmd, char *parm1, char *parm2, char *parm3)

C_TabbedOutput(tabs, "Lines\t%s\t%s", commify(numlines), convertsize(sizelines));

C_TabbedOutput(tabs, "Line specials\t%s-compatible", (boomlinespecials ? "BOOM" : "Vanilla"));
C_TabbedOutput(tabs, "Line specials\t%s-compatible",
(boomlinespecials ? "~BOOM~" : "Vanilla"));

C_TabbedOutput(tabs, "Sides\t%s\t%s", commify(numsides), convertsize(sizesides));

C_TabbedOutput(tabs, "Vertices\t%s\t%s", commify(numvertexes), convertsize(sizevertexes));

C_TabbedOutput(tabs, "Segments\t%s\t%s", commify(numsegs), convertsize(sizesegs));

C_TabbedOutput(tabs, "Subsectors\t%s\t%s", commify(numsubsectors), convertsize(sizesubsectors));
C_TabbedOutput(tabs, "Subsectors\t%s\t%s", commify(numsubsectors),
convertsize(sizesubsectors));

C_TabbedOutput(tabs, "Nodes\t%s\t%s", commify(numnodes), convertsize(sizenodes));

Expand Down Expand Up @@ -1721,7 +1723,7 @@ static void mapstats_cmd_func2(char *cmd, char *parm1, char *parm2, char *parm3)
else if (y > max_y)
max_y = y;
}
C_TabbedOutput(tabs, "Size\t%sx%s",
C_TabbedOutput(tabs, "Dimensions\t%sx%s",
commify((max_x - min_x) >> FRACBITS), commify((max_y - min_y) >> FRACBITS));
}

Expand Down
7 changes: 1 addition & 6 deletions src/p_spec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1960,7 +1960,6 @@ void P_UpdateSpecials(void)

// ANIMATE FLATS AND TEXTURES GLOBALLY
for (anim = anims; anim < lastanim; anim++)
{
for (i = anim->basepic; i < anim->basepic + anim->numpics; i++)
{
pic = anim->basepic + ((leveltime / anim->speed + i) % anim->numpics);
Expand All @@ -1969,7 +1968,6 @@ void P_UpdateSpecials(void)
else
flattranslation[i] = pic;
}
}

animatedliquiddiff += animatedliquiddiffs[leveltime & 63];
animatedliquidxoffs += animatedliquidxdir;
Expand All @@ -1982,9 +1980,7 @@ void P_UpdateSpecials(void)
// DO BUTTONS
for (i = 0; i < MAXBUTTONS; i++)
if (buttonlist[i].btimer)
{
buttonlist[i].btimer--;
if (!buttonlist[i].btimer)
if (!--buttonlist[i].btimer)
{
switch (buttonlist[i].where)
{
Expand All @@ -2007,7 +2003,6 @@ void P_UpdateSpecials(void)
S_StartSectorSound(buttonlist[i].soundorg, sfx_swtchn);
memset(&buttonlist[i], 0, sizeof(button_t));
}
}
}

//
Expand Down

0 comments on commit 1822041

Please sign in to comment.