Skip to content

Commit

Permalink
Return error if map dimension unequal
Browse files Browse the repository at this point in the history
  • Loading branch information
fazelukario committed Nov 20, 2023
1 parent f3fe279 commit 690ef8a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Pseudo3DCLIGame/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ int main()
Depth = mapConfig[4];
Speed = mapConfig[5];

if (MapWidth != MapHeight)
{
cout << "Map is not square!" << endl;
return 1;
}

auto tp1 = chrono::system_clock::now();
auto tp2 = chrono::system_clock::now();

Expand Down

0 comments on commit 690ef8a

Please sign in to comment.