summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/games/doom/g_game.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/games/doom/g_game.c b/sys/src/games/doom/g_game.c
index a653fd2a4..6741498c0 100644
--- a/sys/src/games/doom/g_game.c
+++ b/sys/src/games/doom/g_game.c
@@ -860,7 +860,7 @@ G_CheckSpot
// spawn a teleport fog
ss = R_PointInSubsector (x,y);
- an = ( ANG45 * (mthing->angle/45) ) >> ANGLETOFINESHIFT;
+ an = ( ANG45 * ((unsigned)mthing->angle/45) ) >> ANGLETOFINESHIFT;
mo = P_SpawnMobj (x+20*finecosine[an], y+20*finesine[an]
, ss->sector->floorheight