spring: develop 96071ba5 | [ Diff ] [ Back to Repository ] | |||
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
tvo | tvo | develop | 2007-01-03 14:48:19 | develop 411557b4 |
Changeset | * Fix mantis 357: The damage calculation on an underwater unit on the edge of an explosion of a above-water weapon with edgeEffectiveness=1 could cause a 0/0 divide, and hence a NaN damage and NaN experience & health for the firing unit. EdgeEffectiveness is clamped to below 1 to prevent this. * Fixed another potential division by zero in CGameHelper::Explosion. * Added NDEBUG #define for build with debugging turned off (less failed asserts in release build.. tho in some cases it will just crash instead) * Don't bail out immediately if FPU CW is wrong, but give a warning and set the FPU CW to the correct value again. (And pray no synced floating point calculations were performed in between). This should give people who got this failed assert "good_fpu_control_word" a good chance to play again. git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@3061 37977431-3df6-0310-b722-df95706aa16b |
|||
mod - rts/Game/Game.cpp | [ Diff ] [ File ] | |||
mod - rts/Game/GameHelper.cpp | [ Diff ] [ File ] | |||
mod - rts/Game/PreGame.cpp | [ Diff ] [ File ] | |||
mod - rts/Sim/Weapons/WeaponDefHandler.cpp | [ Diff ] [ File ] | |||
mod - rts/System/FPUCheck.h | [ Diff ] [ File ] | |||
mod - rts/System/Main.cpp | [ Diff ] [ File ] | |||
mod - rts/build/scons/rts.py | [ Diff ] [ File ] |