From 31410e5c7c0bc0f38258b1cb0a434f91472de4d0 Mon Sep 17 00:00:00 2001 From: ketmar Date: Sat, 19 May 2012 23:58:27 +0300 Subject: [PATCH] cosmetix --- src/game/command.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/game/command.cpp b/src/game/command.cpp index 6682ad9..e2c2fc7 100644 --- a/src/game/command.cpp +++ b/src/game/command.cpp @@ -277,11 +277,14 @@ truth commandsystem::Open (character *Char) { if (Char->CanOpen()) { int Key; truth OpenableItems = Char->GetStack()->SortedItems(Char, &item::IsOpenable); - if (OpenableItems) + // + if (OpenableItems) { Key = game::AskForKeyPress(CONST_S("What do you wish to open? [press a direction key, space or i]")); - else + } else { Key = game::AskForKeyPress(CONST_S("What do you wish to open? [press a direction key or space]")); - if ((Key == 'i' || Key == 'I') && OpenableItems) { + } + // + if (OpenableItems && (Key == 'i' || Key == 'I')) { item *Item = Char->GetStack()->DrawContents(Char, CONST_S("What do you want to open?"), 0, &item::IsOpenable); return Item && Item->Open(Char); } -- 2.11.4.GIT