Skip to content

Commit

Permalink
Rename DrawFloor to DrawFloorTile
Browse files Browse the repository at this point in the history
There is no reason to overload these 2.
  • Loading branch information
glebm committed Aug 11, 2024
1 parent efa9430 commit 5b076e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/engine/render/scrollrt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ void DrawCell(const Surface &out, Point tilePosition, Point targetBufferPosition
* @param tilePosition dPiece coordinates
* @param targetBufferPosition Target buffer coordinate
*/
void DrawFloor(const Surface &out, Point tilePosition, Point targetBufferPosition)
void DrawFloorTile(const Surface &out, Point tilePosition, Point targetBufferPosition)
{
const int lightTableIndex = dLight[tilePosition.x][tilePosition.y];

Expand Down Expand Up @@ -837,7 +837,7 @@ void DrawFloor(const Surface &out, Point tilePosition, Point targetBufferPositio
for (int j = 0; j < columns; j++) {
if (InDungeonBounds(tilePosition)) {
if (!TileHasAny(tilePosition, TileProperties::Solid))
DrawFloor(out, tilePosition, targetBufferPosition);
DrawFloorTile(out, tilePosition, targetBufferPosition);
} else {
world_draw_black_tile(out, targetBufferPosition.x, targetBufferPosition.y);
}
Expand Down

0 comments on commit 5b076e2

Please sign in to comment.