diff options
author | Simon Howard | 2011-10-17 23:58:52 +0000 |
---|---|---|
committer | Simon Howard | 2011-10-17 23:58:52 +0000 |
commit | e5806af05eb31c18250bf74c9b8ae052a0666b6b (patch) | |
tree | be83b0c001b6ad860c7eb66e9af667f88ef0083e | |
parent | a84d0161a033548436278a57b7d2c3b09b35b003 (diff) | |
download | chocolate-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
-rw-r--r-- | src/heretic/g_game.c | 2 |
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); |