Fixed a silly, got it working.
This commit is contained in:
@@ -287,9 +287,11 @@ namespace CaveGame::Core {
|
||||
|
||||
|
||||
void SandGravTiccFunc(const Tile &data, ITileMap *world, int x, int y) {
|
||||
static TileID air = TileRegistry()["air"].numeric_id;
|
||||
static TileID water = TileRegistry()["water"].numeric_id;
|
||||
static TileID air = Tiles()["air"].numeric_id;
|
||||
static TileID water = Tiles()["water"].numeric_id;
|
||||
static TileID sand = data.numeric_id;
|
||||
|
||||
|
||||
TileID below = world->GetTile(x, y + 1);
|
||||
if (below == air || below == water) {
|
||||
world->SwapTile(x, y, x, y+1);
|
||||
|
Reference in New Issue
Block a user