diff options
author | Simon Howard | 2011-10-15 13:55:18 +0000 |
---|---|---|
committer | Simon Howard | 2011-10-15 13:55:18 +0000 |
commit | ef848275bcf6dd978499cfc6a28cc81256a82447 (patch) | |
tree | e9383f09108916aeb7f7a718bd34c26dd0dc720f /src/hexen | |
parent | 55a39ccab15bfb8082149f9aec2d1273211c1605 (diff) | |
download | chocolate-doom-ef848275bcf6dd978499cfc6a28cc81256a82447.tar.gz chocolate-doom-ef848275bcf6dd978499cfc6a28cc81256a82447.tar.bz2 chocolate-doom-ef848275bcf6dd978499cfc6a28cc81256a82447.zip |
Revert previous change to angle constants and apply a more specific fix.
Changing the angle constants to unsigned causes other problems to occur.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2429
Diffstat (limited to 'src/hexen')
-rw-r--r-- | src/hexen/g_game.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hexen/g_game.c b/src/hexen/g_game.c index 1560c05f..5dcfb478 100644 --- a/src/hexen/g_game.c +++ b/src/hexen/g_game.c @@ -1150,7 +1150,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); |