Fix centering of camera for overworld map.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user