From 81ccf8a730932e15bad41e66665e8776c88a9ec9 Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Fri, 14 Sep 2018 18:54:48 +0200 Subject: [PATCH] Fixed a windy room issue --- data/maproombuilder.lua | 2 +- src/skill.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/maproombuilder.lua b/data/maproombuilder.lua index 4772316..d8e5c95 100644 --- a/data/maproombuilder.lua +++ b/data/maproombuilder.lua @@ -435,7 +435,7 @@ local function build_normal_room(room) if CURRENT_LEVEL > 5 and random(8) == 1 then room.modifier.type = "FIRE" room.modifier.arg = "" - elseif (not pitsAdded and CURRENT_LEVEL > 1) or CURRENT_LEVEL > 3 and random(8) == 1 then + elseif ((not pitsAdded and CURRENT_LEVEL > 1) or CURRENT_LEVEL > 3) and random(8) == 1 then directions = { "LEFT", "RIGHT", "UP", "DOWN" } room.modifier.type = "WINDY" room.modifier.arg = directions[random(#directions)] diff --git a/src/skill.c b/src/skill.c index 0898319..7bf4b73 100644 --- a/src/skill.c +++ b/src/skill.c @@ -631,7 +631,7 @@ skill_create(enum SkillType t, Camera *cam) return NULL; } -#ifdef DEBUG_SKILLS +#ifdef DEBUG skill->levelcap = 1; #endif return skill;