Skip to content
Snippets Groups Projects
Commit 4dda44c4 authored by Robin Ruud Kristensen's avatar Robin Ruud Kristensen
Browse files

fixed rom teleport

parent 271f396e
No related branches found
No related tags found
2 merge requests!75Main,!66Ruud1
......@@ -119,6 +119,7 @@ namespace Bigsock
}
else WallTop[roomNr].SetTile(new Vector3Int(x, map.GetUpperBound(1), z_value), tileSetSO.wallTopTile[1]); //Middle part of top wall
int fast = 0;
//Check for where the door will be located : when there is no door
if (x == doorLocation && !doorInRoom && !LastRoom)
{
......@@ -185,9 +186,16 @@ namespace Bigsock
WallBottom[roomNr].SetTile(new Vector3Int(x + x1, map.GetLowerBound(0) - 1, z_value), tileSetSO.wallBottomTile[1]);
}
}
fast++;
doorInRoom = true;
x += 3; //Jump x over the door location
}
else if(fast == 0 && LastRoom)
{
DoorLocations.Add(new Vector3Int((int)WallTop[roomNr].transform.position.x + x + 2,
(int)WallTop[roomNr].transform.position.y, z_value));
fast++;
}
}
SetMapBoundary(map, roomNr);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment