From 305618f279ee424e35c254b0d63d151f91fd3e69 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 16 Mar 2009 20:49:42 +0000 Subject: * Fix 2687930: Shorten the spell menu more, and don't call update_title() at '?' as apparently all it does is hide the first spell line. * Uncomment the autoinscription of weapons of distortion in init.txt. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9511 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tilereg.cc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'crawl-ref/source/tilereg.cc') diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc index 79387e594a..e4173944f1 100644 --- a/crawl-ref/source/tilereg.cc +++ b/crawl-ref/source/tilereg.cc @@ -90,11 +90,11 @@ const int dir_dx[9] = {-1, 0, 1, -1, 0, 1, -1, 0, 1}; const int dir_dy[9] = {1, 1, 1, 0, 0, 0, -1, -1, -1}; const int cmd_normal[9] = {'b', 'j', 'n', 'h', '.', 'l', 'y', 'k', 'u'}; -const int cmd_shift[9] = {'B', 'J', 'N', 'H', '5', 'L', 'Y', 'K', 'U'}; -const int cmd_ctrl[9] = {CONTROL('B'), CONTROL('J'), CONTROL('N'), - CONTROL('H'), 'X', CONTROL('L'), - CONTROL('Y'), CONTROL('K'), CONTROL('U')}; -const int cmd_dir[9] = {'1', '2', '3', '4', '5', '6', '7', '8', '9'}; +const int cmd_shift[9] = {'B', 'J', 'N', 'H', '5', 'L', 'Y', 'K', 'U'}; +const int cmd_ctrl[9] = {CONTROL('B'), CONTROL('J'), CONTROL('N'), + CONTROL('H'), 'X', CONTROL('L'), + CONTROL('Y'), CONTROL('K'), CONTROL('U')}; +const int cmd_dir[9] = {'1', '2', '3', '4', '5', '6', '7', '8', '9'}; Region::Region() : ox(0), @@ -1254,10 +1254,8 @@ void InventoryRegion::on_resize() return; m_flavour = new unsigned char[mx * my]; - for (int i = 0; i < mx * my; i++) - { + for (int i = 0; i < mx * my; ++i) m_flavour[i] = random2((unsigned char)~0); - } } void InventoryRegion::update(int num, InventoryTile *items) -- cgit v1.2.3-54-g00ecf