- Fix warnings reported by gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)

SVN r3293 (trunk)
This commit is contained in:
Randy Heit 2011-09-14 23:24:32 +00:00
commit de8bf651f2
6 changed files with 103 additions and 13 deletions

View file

@ -513,9 +513,9 @@ bool EV_SilentLineTeleport (line_t *line, int side, AActor *thing, int id, INTBO
while (P_PointOnLineSide(x, y, l) != side && --fudge >= 0)
{
if (abs(l->dx) > abs(l->dy))
y -= l->dx < 0 != side ? -1 : 1;
y -= (l->dx < 0) != side ? -1 : 1;
else
x += l->dy < 0 != side ? -1 : 1;
x += (l->dy < 0) != side ? -1 : 1;
}
// Adjust z position to be same height above ground as before.