From 1be6c4c341fc6b42c76b9848b624e94f7f4451e4 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 14 Apr 2006 15:24:32 +0000 Subject: Fix netgame respawn bug on MAP02 (may be 64-bit related) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 469 --- src/g_game.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/g_game.c b/src/g_game.c index c20c5912..6d9a286c 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: g_game.c 455 2006-03-30 19:08:37Z fraggle $ +// $Id: g_game.c 469 2006-04-14 15:24:32Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -134,7 +134,7 @@ static const char -rcsid[] = "$Id: g_game.c 455 2006-03-30 19:08:37Z fraggle $"; +rcsid[] = "$Id: g_game.c 469 2006-04-14 15:24:32Z fraggle $"; #include #include @@ -1076,7 +1076,7 @@ G_CheckSpot // spawn a teleport fog ss = R_PointInSubsector (x,y); - an = ( ANG45 * (mthing->angle/45) ) >> ANGLETOFINESHIFT; + an = ( ANG45 * (((unsigned int) mthing->angle)/45) ) >> ANGLETOFINESHIFT; mo = P_SpawnMobj (x+20*finecosine[an], y+20*finesine[an] , ss->sector->floorheight -- cgit v1.2.3