commit e5806af05eb31c18250bf74c9b8ae052a0666b6b
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Mon Oct 17 23:58:52 2011 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Mon Oct 17 23:58:52 2011 +0000
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(-)
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);