vkdoom_m/src/g_doom
Christoph Oelckers f1ba19073f - split Damage into two variables: DamageVal for the old constant and DamageFunc for the DECORATE function.
The way this was done was a major headache inducer, requiring reconstruction of the function each time the value was changed and in general made actor damage a major hassle.
There was a DECORATE wrapper to mimic the original behavior but this looked quite broken because it completely ignored the different semantics of both damage calculation types.
It also made it impossible to determine if damage was a function or a value.
This accessor has been reverted to what it should be, only returning the constant, which now is -1 for a damage function. I am sorry if this may break the odd mod out but a quick look over some DECORATE-heavy stuff showed that this was never combined in any of them so that accessing 'damage' in DECORATE code depended on an actual damage function.

To get proper damage, a future commit will add a DECORATE function which calls AActor::GetMissileDamage.
2016-09-19 03:36:51 +02:00
..
a_arachnotron.cpp Normalize line endings 2016-03-01 09:47:10 -06:00
a_archvile.cpp - finished conversion of most of g_doom. 2016-03-20 10:52:10 +01:00
a_bossbrain.cpp - split Damage into two variables: DamageVal for the old constant and DamageFunc for the DECORATE function. 2016-09-19 03:36:51 +02:00
a_bruiser.cpp Normalize line endings 2016-03-01 09:47:10 -06:00
a_cacodemon.cpp Normalize line endings 2016-03-01 09:47:10 -06:00
a_cyberdemon.cpp Normalize line endings 2016-03-01 09:47:10 -06:00
a_demon.cpp Normalize line endings 2016-03-01 09:47:10 -06:00
a_doomglobal.h Normalize line endings 2016-03-01 09:47:10 -06:00
a_doomimp.cpp Normalize line endings 2016-03-01 09:47:10 -06:00
a_doommisc.cpp - converted AActor::height to double. 2016-03-20 20:55:06 +01:00
a_doomweaps.cpp Renamed the weapon action function caller check to ACTION_CALL_FROM_PSPRITE to avoid confusion 2016-06-17 18:36:57 +02:00
a_fatso.cpp - converted AActor::height to double. 2016-03-20 20:55:06 +01:00
a_keen.cpp - finished conversion of most of g_doom. 2016-03-20 10:52:10 +01:00
a_lostsoul.cpp - replaced AActor::vel and player_t::Vel with a floating point version. 2016-03-20 00:54:18 +01:00
a_painelemental.cpp - renamed PARAM_DANGLE macros to PARAM_ANGLE, now that the old angle_t type is no longer used in the VM interface. 2016-03-25 13:23:07 +01:00
a_possessed.cpp - reworked calls to P_SpawnPlayerMissile, P_AimLineAttack and P_LineAttack to use floating point angles. 2016-03-18 00:43:05 +01:00
a_revenant.cpp - converted AActor::height to double. 2016-03-20 20:55:06 +01:00
a_scriptedmarine.cpp - converted scale variables in AActor, FMapThing and skin to float. 2016-03-20 12:13:00 +01:00
a_spidermaster.cpp Normalize line endings 2016-03-01 09:47:10 -06:00