summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libw32c.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-21 12:37:25 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-21 12:37:25 -0600
commit4277eaea5e02fb69d64193a0395357e2c346afdb (patch)
tree68806b639fbb4d2e08215b12517c86c2eee0fe94 /crawl-ref/source/libw32c.cc
parent505571294e7ca02c0af89ff2b25f3cecde439448 (diff)
downloadcrawl-ref-4277eaea5e02fb69d64193a0395357e2c346afdb.tar.gz
crawl-ref-4277eaea5e02fb69d64193a0395357e2c346afdb.zip
Add formatting fixes.
This mostly puts && and || on the proper lines, per the style guide.
Diffstat (limited to 'crawl-ref/source/libw32c.cc')
-rw-r--r--crawl-ref/source/libw32c.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/libw32c.cc b/crawl-ref/source/libw32c.cc
index a9fff4df09..36cc261851 100644
--- a/crawl-ref/source/libw32c.cc
+++ b/crawl-ref/source/libw32c.cc
@@ -745,10 +745,12 @@ int vk_translate( WORD VirtCode, CHAR c, DWORD cKeys)
bool altDown = !!(cKeys & (LEFT_ALT_PRESSED | RIGHT_ALT_PRESSED));
// step 1 - we don't care about shift or control
- if (VirtCode == VK_SHIFT || VirtCode == VK_CONTROL ||
- VirtCode == VK_MENU || VirtCode == VK_CAPITAL ||
- VirtCode == VK_NUMLOCK)
+ if (VirtCode == VK_SHIFT || VirtCode == VK_CONTROL
+ || VirtCode == VK_MENU || VirtCode == VK_CAPITAL
+ || VirtCode == VK_NUMLOCK)
+ {
return 0;
+ }
// step 2 - translate the <Esc> key to 0x1b
if (VirtCode == VK_ESCAPE)