Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Nicholas McDaniel <[email protected]>
  • Loading branch information
realSquidCoder and NicksWorld authored Feb 11, 2025
1 parent 376e4f3 commit 76b75c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions GUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ namespace
void drawSelectionCursor(WorldSegment* segment)
{
auto& ssConfig = stonesenseState.ssConfig;
df::coord& selection = segment->segState.dfSelection;
df::coord selection = segment->segState.dfSelection;
if ((selection.x != -30000 && ssConfig.config.follow_DFcursor)) {
drawCursorAt(segment, selection, uiColor(3));
}
Expand All @@ -521,7 +521,7 @@ namespace

void drawDebugCursor(WorldSegment* segment)
{
df::coord& cursor = segment->segState.dfCursor;
df::coord cursor = segment->segState.dfCursor;
drawCursorAt(segment, cursor, uiColor(2));
}

Expand Down
2 changes: 1 addition & 1 deletion SpriteObjects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ void c_sprite::assemble_world_offset(int x, int y, int z, int plateoffset, Tile
int16_t drawx = x;
int16_t drawy = y;
int16_t drawz = z; //- ownerSegment->sizez + 1;
df::coord drawcoord(drawx, drawx, drawz);
df::coord drawcoord(drawx, drawy, drawz);


b->ownerSegment->CorrectTileForSegmentOffset(drawcoord);
Expand Down
2 changes: 1 addition & 1 deletion Tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ void Tile::GetDrawLocation(int32_t& drawx, int32_t& drawy)
drawx = x;
drawy = y;
int32_t drawz = z;
df::coord drawcoord(drawx, drawx, drawz);
df::coord drawcoord(drawx, drawy, drawz);


ownerSegment->CorrectTileForSegmentOffset(drawcoord);
Expand Down

0 comments on commit 76b75c0

Please sign in to comment.