Skip to content

Commit

Permalink
Fix for drawing the minimap with unequal width and height values
Browse files Browse the repository at this point in the history
  • Loading branch information
fazelukario committed Nov 20, 2023
1 parent c56ffcc commit f755b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pseudo3DCLIGame/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ int main()
// Display Map
for (int nx = 0; nx < MapWidth; nx++)
{
for (int ny = 0; ny < MapWidth; ny++)
for (int ny = 0; ny < MapHeight; ny++)
{
screen[(ny + 1) * ScreenWidth + nx] = map[ny * MapWidth + nx];
}
Expand Down

0 comments on commit f755b2b

Please sign in to comment.