From ce86e88fa3bd9b4867048be78f7add1cf02840ad Mon Sep 17 00:00:00 2001 From: OnionKnight Date: Fri, 14 Aug 2009 02:13:22 +0000 Subject: [PATCH] Better positioning of the melee cursors. --- client/CCursorHandler.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/client/CCursorHandler.cpp b/client/CCursorHandler.cpp index 108134cd2..1204ef81a 100644 --- a/client/CCursorHandler.cpp +++ b/client/CCursorHandler.cpp @@ -47,6 +47,36 @@ void CCursorHandler::draw1() { x-=16; y-=16; + + // Properly align the melee attack cursors. + if (mode == 1) { + switch (number) { + case 7: // Bottom left + x -= 6; + y += 16; + break; + case 8: // Left + x -= 16; + y += 11; + break; + case 9: // Top left + x -= 6; + y -= 6; + break; + case 10: // Top right + x += 16; + y -= 6; + break; + case 11: // Right + x += 16; + y += 11; + break; + case 12: // Bottom right + x += 16; + y += 16; + break; + } + } } else if(mode==0 && number>0) {