Skip to content

Commit

Permalink
PowerManager: Fix target_neighbor not using the starting_pos as the o…
Browse files Browse the repository at this point in the history
…rigin
  • Loading branch information
dorkster committed Aug 25, 2023
1 parent 6fc0cca commit b0f9eaf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Engine fixes:
* Fix input state not being correctly reset after using a gamepad analog control
* Increase default audio playback samplerate to 44100Hz from 22050Hz. This can now be adjusted in the user's settings.txt file.
* Fix leaked animation when Power entire power was redefined.
* Fix power.target_neighbor not using the starting_pos as the origin point.

Game updates:
* Limited the number of "unique" items that can drop from a boss to 1 per kill.
Expand Down
2 changes: 1 addition & 1 deletion src/PowerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ void PowerManager::initHazard(PowerID power_index, StatBlock *src_stats, const F
}

if (powers[power_index].target_neighbor > 0) {
haz->pos = collider->getRandomNeighbor(Point(src_stats->pos), powers[power_index].target_neighbor, MapCollision::IGNORE_BLOCKED);
haz->pos = collider->getRandomNeighbor(Point(haz->pos), powers[power_index].target_neighbor, MapCollision::IGNORE_BLOCKED);
}

if (powers[power_index].relative_pos) {
Expand Down
2 changes: 1 addition & 1 deletion src/Version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ FLARE. If not, see http://www.gnu.org/licenses/

#include <SDL.h>

Version VersionInfo::ENGINE(1, 14, 24);
Version VersionInfo::ENGINE(1, 14, 25);
Version VersionInfo::MIN(0, 0, 0);
Version VersionInfo::MAX(USHRT_MAX, USHRT_MAX, USHRT_MAX);

Expand Down

0 comments on commit b0f9eaf

Please sign in to comment.