summaryrefslogtreecommitdiff
path: root/src/heretic/g_game.c
diff options
context:
space:
mode:
authorSimon Howard2011-10-17 23:58:52 +0000
committerSimon Howard2011-10-17 23:58:52 +0000
commite5806af05eb31c18250bf74c9b8ae052a0666b6b (patch)
treebe83b0c001b6ad860c7eb66e9af667f88ef0083e /src/heretic/g_game.c
parenta84d0161a033548436278a57b7d2c3b09b35b003 (diff)
downloadchocolate-doom-e5806af05eb31c18250bf74c9b8ae052a0666b6b.tar.gz
chocolate-doom-e5806af05eb31c18250bf74c9b8ae052a0666b6b.tar.bz2
chocolate-doom-e5806af05eb31c18250bf74c9b8ae052a0666b6b.zip
Fix crash on respawn in Heretic (same as previously-fixed Hexen respawn
crash) Subversion-branch: /branches/v2-branch Subversion-revision: 2440
Diffstat (limited to 'src/heretic/g_game.c')
-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);