From e5806af05eb31c18250bf74c9b8ae052a0666b6b Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 17 Oct 2011 23:58:52 +0000 Subject: Fix crash on respawn in Heretic (same as previously-fixed Hexen respawn crash) Subversion-branch: /branches/v2-branch Subversion-revision: 2440 --- src/heretic/g_game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/heretic/g_game.c') 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); -- cgit v1.2.3