Fix should draw condition

This commit is contained in:
schmelczerandras 2020-07-25 17:51:13 +02:00
commit b6bef3c77d

View file

@ -17,7 +17,7 @@ export const createDungeon = (objects: ObjectContainer) => {
new Tunnel(previousEnd, currentEnd, previousRadius, currentToRadius)
);
if (deltaHeight > 0) {
if (deltaHeight > 0 && Math.random() > 0.5) {
objects.addObject(
new CircleLight(
currentEnd,