Browse Source

- Terrain config
- Fix for underground terrains

Tomasz Zieliński 3 years ago
parent
commit
97c17c6294
2 changed files with 2 additions and 1 deletions
  1. 1 0
      config/terrains.json
  2. 1 1
      lib/Terrain.cpp

+ 1 - 0
config/terrains.json

@@ -103,6 +103,7 @@
 		"minimapBlocked"   : [ 41, 40, 41 ],
 		"music" : "Lava.mp3",
 		"tiles" : "LAVATL",
+		"type" : "SUB",
 		"code" : "lv",
 		"river" : "rl",
 		"battleFields" : ["lava"],

+ 1 - 1
lib/Terrain.cpp

@@ -267,7 +267,7 @@ bool TerrainType::isPassable() const
 
 bool TerrainType::isUnderground() const
 {
-	return passabilityType != PassabilityType::SUBTERRANEAN;
+	return passabilityType == PassabilityType::SUBTERRANEAN;
 }
 
 bool TerrainType::isTransitionRequired() const