1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-26 11:27:39 +00:00

added some missing guards

This commit is contained in:
Zeno Rogue
2020-07-30 02:29:59 +02:00
parent 9d0a252d14
commit ecbd8806e7
4 changed files with 9 additions and 5 deletions

View File

@@ -156,6 +156,7 @@ EX namespace mapeditor {
EX void clear_dtshapes() { dtshapes.clear(); }
EX void draw_dtshapes() {
#if CAP_EDIT
for(auto& shp: dtshapes) {
if(shp == nullptr) continue;
auto& sh = *shp;
@@ -179,6 +180,7 @@ EX namespace mapeditor {
queueline(T * ypush0(-.1), T * ypush0(.1), dtcolor);
}
}
#endif
}
/** dtshapes takes ownership of sh */