0

Add 'showspawn' render option

Allow users to hide the spawn marker that is normally generated for
overworld levels
This commit is contained in:
Thomas Lake
2012-04-08 12:51:27 +01:00
parent b2ce4fa7e5
commit 36aa6ed011
4 changed files with 10 additions and 2 deletions

View File

@@ -520,8 +520,11 @@ class TileSet(object):
last_rendertime = self.max_chunk_mtime,
imgextension = self.imgextension,
)
if (self.regionset.get_type() == "overworld"):
if (self.regionset.get_type() == "overworld" and self.options.get("showspawn", True)):
d.update({"spawn": self.options.get("spawn")})
else:
d.update({"spawn": "false"});
try:
d['north_direction'] = self.regionset.north_dir
except AttributeError: