diff --git a/src/c_cmds.cpp b/src/c_cmds.cpp index aed83658ba..d72fc79a20 100644 --- a/src/c_cmds.cpp +++ b/src/c_cmds.cpp @@ -1086,7 +1086,7 @@ CCMD(currentpos) if(mo) { Printf("Current player position: (%1.3f,%1.3f,%1.3f), angle: %1.3f, floorheight: %1.3f, sector:%d, lightlevel: %d\n", - mo->X(), mo->Y(), mo->Z(), mo->Angles.Yaw, mo->floorz, mo->Sector->sectornum, mo->Sector->lightlevel); + mo->X(), mo->Y(), mo->Z(), mo->Angles.Yaw.Normalized360().Degrees, mo->floorz, mo->Sector->sectornum, mo->Sector->lightlevel); } else { diff --git a/src/p_map.cpp b/src/p_map.cpp index f757f089c8..564b79b933 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -2122,8 +2122,10 @@ bool P_TryMove(AActor *thing, const DVector2 &pos, // it slopes or the player's eyes are bobbing in and out. bool oldAboveFakeFloor, oldAboveFakeCeiling; - double viewheight = thing->player ? thing->player->viewheight : thing->Height / 2; - oldAboveFakeFloor = oldAboveFakeCeiling = false; // pacify GCC + double viewheight; + // pacify GCC + viewheight = thing->player ? thing->player->viewheight : thing->Height / 2; + oldAboveFakeFloor = oldAboveFakeCeiling = false; if (oldsec->heightsec) { diff --git a/src/r_segs.cpp b/src/r_segs.cpp index 0c645f14a1..3acc909938 100644 --- a/src/r_segs.cpp +++ b/src/r_segs.cpp @@ -3169,7 +3169,8 @@ static void R_RenderDecal (side_t *wall, DBaseDecal *decal, drawseg_t *clipper, break; } - fixed_t fzpos = FLOAT2FIXED(zpos); + fixed_t fzpos; + fzpos = FLOAT2FIXED(zpos); // pacify GCC topoff = WallSpriteTile->TopOffset << FRACBITS; dc_texturemid = topoff + FixedDiv (fzpos - viewz, yscale);