Fixed a windy room issue

This commit is contained in:
Linus Probert 2018-09-14 18:54:48 +02:00
parent 083834d044
commit 81ccf8a730
2 changed files with 2 additions and 2 deletions

View File

@ -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)]

View File

@ -631,7 +631,7 @@ skill_create(enum SkillType t, Camera *cam)
return NULL;
}
#ifdef DEBUG_SKILLS
#ifdef DEBUG
skill->levelcap = 1;
#endif
return skill;