feat: keyboard and mouse controls

fixes:
- unsafe string conversion
- fence gates not connecting to walls properly
This commit is contained in:
Fireblade
2026-07-20 02:24:35 -04:00
parent 10ab8b114d
commit cd64f5f52b
6 changed files with 87 additions and 46 deletions
+7 -1
View File
@@ -155,7 +155,13 @@ AABB *WallTile::getAABB(Level *level, int x, int y, int z)
bool WallTile::connectsTo(LevelSource *level, int x, int y, int z)
{
int tile = level->getTile(x, y, z);
if (tile == id || tile == Tile::fence_gate_Id)
if (tile == id || tile == Tile::fence_gate_Id ||
tile == Tile::birch_fence_gate_Id ||
tile == Tile::spruce_fence_gate_Id ||
tile == Tile::jungle_fence_gate_Id ||
tile == Tile::acacia_fence_gate_Id ||
tile == Tile::dark_oak_fence_gate_Id
) // fix: walls only connecting to the regular fence gate
{
return true;
}