vkdoom_m/src/g_heretic
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_chicken.cpp Fixed a crash with heretic's ChickenPlayer class 2016-07-13 13:01:32 +02:00
a_dsparil.cpp - fixed some issues with teleport fog: 2016-06-06 10:48:40 +02:00
a_hereticartifacts.cpp - made AActor::alpha a floating point value 2016-03-21 12:18:46 +01:00
a_hereticimp.cpp - replaced AActor::vel and player_t::Vel with a floating point version. 2016-03-20 00:54:18 +01:00
a_hereticmisc.cpp - fixed some issues with teleport fog: 2016-06-06 10:48:40 +02:00
a_hereticweaps.cpp Reimplemented P_SetPsprite. 2016-06-16 07:24:00 -05:00
a_ironlich.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_knight.cpp - made AActor::gravity and FMapThing::gravity floats. 2016-03-21 00:51:19 +01:00
a_wizard.cpp - made AActor::alpha a floating point value 2016-03-21 12:18:46 +01:00