Skip to content

Commit

Permalink
wzapi::addBeacon - Center beacon blip
Browse files Browse the repository at this point in the history
  • Loading branch information
aco4 authored and KJeff01 committed Jan 30, 2025
1 parent 317c8df commit 2f7bfd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wzapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2146,8 +2146,8 @@ bool wzapi::addBeacon(WZAPI_PARAMS(int _x, int _y, int playerFilter, optional<st
SCRIPT_ASSERT(false, context, _x <= mapWidth, "Beacon x value %d is greater than mapWidth %d", _x, (int)mapWidth);
SCRIPT_ASSERT(false, context, _y <= mapHeight, "Beacon y value %d is greater than mapHeight %d", _y, (int)mapHeight);

int x = world_coord(_x);
int y = world_coord(_y);
int x = world_coord(_x) + (TILE_UNITS / 2);
int y = world_coord(_y) + (TILE_UNITS / 2);

std::string message;
if (_message.has_value())
Expand Down

0 comments on commit 2f7bfd3

Please sign in to comment.