Fixed a silly, got it working.

This commit is contained in:
2025-03-27 18:18:11 -04:00
parent f94c8b8e72
commit 1a09845770

View File

@@ -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);