- Fix warnings reported by gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
SVN r3293 (trunk)
This commit is contained in:
parent
d6b6a73fee
commit
de8bf651f2
6 changed files with 103 additions and 13 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue