OutpostUniverse / OP2Utility

C++ library for working with Outpost 2 related files and tasks.
MIT License
4 stars 0 forks source link

Add a GetLavaPossible helper function to Map #330

Closed Brett208 closed 4 years ago

Brett208 commented 4 years ago

I was going to add support for checking if valid x and y coordinates are given, but that creates a pretty significant chain reaction of code updates and maybe should be in a different branch.

Also, I think we need to document the function Map::GetTileIndex better (for my own sake and anyone else who isn't great at bit twiddling).

Brett208 commented 4 years ago

Actually, adding bounds checks to GetTileIndex is exactly what I attempted to do. Maybe I should add an issue for this to track.