BigOverlays will now affect pathfinding.

This commit is contained in:
Justin Marshall
2020-07-24 20:25:54 -07:00
parent 908f6c9c3e
commit 618a31fb8c
8 changed files with 135 additions and 13 deletions
+4
View File
@@ -3161,6 +3161,10 @@ MoveType UnitClass::Can_Enter_Cell(CELL cell, FacingType ) const
if ((unsigned)cell >= MAP_CELL_TOTAL) return(MOVE_NO);
if (cellptr->bigOverlay != NULL) {
return MOVE_NO;
}
/*
** Moving off the edge of the map is not allowed unless
** this is a loaner vehicle.