Skip to content

Commit

Permalink
Reworked tiles management
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Nov 29, 2023
1 parent 7f74b48 commit f141832
Show file tree
Hide file tree
Showing 8 changed files with 182 additions and 179 deletions.
5 changes: 3 additions & 2 deletions CentrED/Map/LandObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ public class LandObject : TileObject
{
public LandTile LandTile;

public LandObject(CentrEDClient client, LandTile tile)
public LandObject(LandTile tile)
{
ObjectId = GetNextId();
Tile = tile;
LandTile = tile;
ref var tileData = ref TileDataLoader.Instance.LandData[tile.Id];
Expand All @@ -26,7 +27,7 @@ public LandObject(CentrEDClient client, LandTile tile)
}
else
{
cornerZ = GetCornerZ(client, tile);
cornerZ = GetCornerZ(Application.CEDClient, tile);
}

var posX = (tile.X - 1) * TILE_SIZE;
Expand Down
Loading

0 comments on commit f141832

Please sign in to comment.