Fix centering of camera for overworld map.

This commit is contained in:
2023-11-12 21:02:23 -06:00
parent c41ae8aaf9
commit bc07f58c9a
9 changed files with 32 additions and 18 deletions
+11
View File
@@ -0,0 +1,11 @@
#include "State_OverworldMap.h"
bool ConnectionPoint::IsNeighbor(ConnectionPoint&testPoint){
for(int neighbor:neighbors){
if(neighbor!=-1){
ConnectionPoint&neighborCp=State_OverworldMap::ConnectionPointFromIndex(neighbor);
if(&neighborCp==&testPoint)return true;
}
}
return false;
}