Skip to content

Commit 4af0471

Browse files
committed
Entity: Use hazard position for origin of post powers
This fixes starting_pos=source and starting_pos=target being effectively the same when triggering powers in this way. Related: e4fab50
1 parent 5930f1c commit 4af0471

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Entity.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ bool Entity::takeHit(Hazard &h) {
627627
hazards->checkNewHazards();
628628
}
629629

630-
powers->activate(chain_power.id, h.src_stats, stats.pos, stats.pos);
630+
powers->activate(chain_power.id, h.src_stats, h.pos, stats.pos);
631631

632632
if (h.power->post_hazards_skip_target) {
633633
// populate powers->hazards with any new hazards created by the post power

src/Version.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ FLARE. If not, see http://www.gnu.org/licenses/
3030

3131
#include <SDL.h>
3232

33-
Version VersionInfo::ENGINE(1, 14, 113);
33+
Version VersionInfo::ENGINE(1, 14, 114);
3434
Version VersionInfo::MIN(0, 0, 0);
3535
Version VersionInfo::MAX(USHRT_MAX, USHRT_MAX, USHRT_MAX);
3636

0 commit comments

Comments
 (0)