mail[Wesnoth-commits] r33299 - /trunk/src/play_controller.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by cjhopman on March 03, 2009 - 05:36:
Author: cjhopman
Date: Tue Mar  3 05:36:38 2009
New Revision: 33299

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33299&view=rev
Log:
-fix for bug #11031

Modified:
    trunk/src/play_controller.cpp

Modified: trunk/src/play_controller.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/play_controller.cpp?rev=33299&r1=33298&r2=33299&view=diff
==============================================================================
--- trunk/src/play_controller.cpp (original)
+++ trunk/src/play_controller.cpp Tue Mar  3 05:36:38 2009
@@ -736,7 +736,7 @@
        // how far the unit can move in that many turns
        if(event.key.keysym.sym >= '1' && event.key.keysym.sym <= '7') {
                const int new_path_turns = (event.type == SDL_KEYDOWN) ?
-                                          event.key.keysym.sym - '1' : 0;
+                                          event.key.keysym.sym - '0' : 1;
 
                if(new_path_turns != mouse_handler_.get_path_turns()) {
                        mouse_handler_.set_path_turns(new_path_turns);




Related Messages


Powered by MHonArc, Updated Tue Mar 03 10:40:21 2009