summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/heretic/g_game.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/heretic/g_game.c b/src/heretic/g_game.c
index 74942653..e6c1fd8c 100644
--- a/src/heretic/g_game.c
+++ b/src/heretic/g_game.c
@@ -1216,7 +1216,7 @@ boolean G_CheckSpot(int playernum, mapthing_t * mthing)
// spawn a teleport fog
ss = R_PointInSubsector(x, y);
- an = (ANG45 * (mthing->angle / 45)) >> ANGLETOFINESHIFT;
+ an = ((unsigned) ANG45 * (mthing->angle / 45)) >> ANGLETOFINESHIFT;
mo = P_SpawnMobj(x + 20 * finecosine[an], y + 20 * finesine[an],
ss->sector->floorheight + TELEFOGHEIGHT, MT_TFOG);