ref: e5806af05eb31c18250bf74c9b8ae052a0666b6b
parent: a84d0161a033548436278a57b7d2c3b09b35b003
author: Simon Howard <fraggle@gmail.com>
date: Mon Oct 17 19:58:52 EDT 2011
Fix crash on respawn in Heretic (same as previously-fixed Hexen respawn crash) Subversion-branch: /branches/v2-branch Subversion-revision: 2440
--- a/src/heretic/g_game.c
+++ b/src/heretic/g_game.c
@@ -1216,7 +1216,7 @@
// 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);