From e54b8369a982585445c84c8590bdb1c16701763f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 Feb 2015 15:07:22 +0300 Subject: Not allow moving while vending shop enabled. --- src/input/inputcondition.h | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) (limited to 'src/input/inputcondition.h') diff --git a/src/input/inputcondition.h b/src/input/inputcondition.h index 353393dd6..de479b328 100644 --- a/src/input/inputcondition.h +++ b/src/input/inputcondition.h @@ -25,30 +25,31 @@ namespace InputCondition { enum Type { - DEFAULT = 1, // default condition - ENABLED = 2, // keyboard must be enabled - NOINPUT = 4, // input items must be unfocused - NOAWAY = 8, // player not in away mode - NOSETUP = 16, // setup window is hidde + DEFAULT = 1, // default condition + ENABLED = 2, // keyboard must be enabled + NOINPUT = 4, // input items must be unfocused + NOAWAY = 8, // player not in away mode + NOSETUP = 16, // setup window is hidde VALIDSPEED = 32, // valid speed - NOMODAL = 64, // modal windows inactive + NOMODAL = 64, // modal windows inactive NONPCINPUT = 128, // npc input field inactive - EMODS = 256, // game modifiers enabled - NOTARGET = 512, // no target/untarget keys + EMODS = 256, // game modifiers enabled + NOTARGET = 512, // no target/untarget keys // pressed - NOFOLLOW = 1024, // follow mode disabled - INGAME = 2048, // game must be started - NOBUYSELL = 4096, // no active buy or sell dialogs + NOFOLLOW = 1024, // follow mode disabled + INGAME = 2048, // game must be started + NOBUYSELL = 4096, // no active buy or sell dialogs NONPCDIALOG = 8192, // no active npc dialog or // dialog almost closed - NOTALKING = 16384, // player have no opened + NOTALKING = 16384, // player have no opened // dialogs what prevent moving - ALIVE = 32768, // player alive - SHORTCUT = 2 + 4 + 16 + 512 + 2048, // flags for shortcut keys - SHORTCUT0 = 2 + 4 + 16 + 512, // flags for shortcut keys - GAME = 2 + 4 + 8 + 16 + 64 + 2048, // main game key - GAME2 = 2 + 8 + 16 + 64 + 2048, - ARROWKEYS = 2 + 4 + 8 + 16 + 64 + 2048 + 4096 + 16384 + ALIVE = 32768, // player alive + NOVENDING = 65536, // vending disabled + SHORTCUT = 2 + 4 + 16 + 512 + 2048, // flags for shortcut keys + SHORTCUT0 = 2 + 4 + 16 + 512, // flags for shortcut keys + GAME = 2 + 4 + 8 + 16 + 64 + 2048, // main game key + GAME2 = 2 + 8 + 16 + 64 + 2048, + ARROWKEYS = 2 + 4 + 8 + 16 + 64 + 2048 + 4096 + 16384 + 65536 }; } // namespace InputCondition -- cgit v1.2.3-60-g2f50