X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=tools%2Fquake2%2Fqdata_heretic2%2Fcommon%2Fmathlib.c;h=8243d86d682da5bb43c799185e2acd8ae5bb8546;hb=5bacc7d8743f0ac892d0c19b9265174ea038be5c;hp=2fa7eabe710a28dbe3e57790504d7ed10ffe181f;hpb=3c73487420fde8d4a3b5360d8b99e48132517900;p=xonotic%2Fnetradiant.git diff --git a/tools/quake2/qdata_heretic2/common/mathlib.c b/tools/quake2/qdata_heretic2/common/mathlib.c index 2fa7eabe..8243d86d 100644 --- a/tools/quake2/qdata_heretic2/common/mathlib.c +++ b/tools/quake2/qdata_heretic2/common/mathlib.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1999-2006 Id Software, Inc. and contributors. + Copyright (C) 1999-2007 id Software, Inc. and contributors. For a list of contributors, see the accompanying CONTRIBUTORS file. This file is part of GtkRadiant. @@ -94,8 +94,10 @@ void _VectorScale( vec3_t v, vec_t scale, vec3_t out ){ out[2] = v[2] * scale; } +#if GDEF_COMPILER_MSVC #pragma optimize("g", off) // went back to turning optimization off, // the bug_fix thing stopped working +#endif vec_t VectorNormalize( vec3_t in, vec3_t out ){ vec_t length, ilength; @@ -136,7 +138,9 @@ vec_t ColorNormalize( vec3_t in, vec3_t out ){ return max; } +#if GDEF_COMPILER_MSVC #pragma optimize("", on) +#endif void VectorInverse( vec3_t v ){ v[0] = -v[0];