Author: brunowolff
Date: Sat Jul 5 05:31:05 2008
New Revision: 27742
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27742&view=rev
Log:
I fixed a warning for gcc 4.3. I didn't change the semantics and the current
way it works appears to be reasonable, but I don't know enough about this
section to be 100% sure their wasn't a mistake that should have been
corrected. It would be nice if the person that changed it made sure that
the semantics were correct.
Modified:
trunk/src/construct_dialog.cpp
Modified: trunk/src/construct_dialog.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/construct_dialog.cpp?rev=27742&r1=27741&r2=27742&view=diff
==============================================================================
--- trunk/src/construct_dialog.cpp (original)
+++ trunk/src/construct_dialog.cpp Sat Jul 5 05:31:05 2008
@@ -706,7 +706,7 @@
const bool use_text_input = (text_widget_!=NULL);
const bool has_input = (use_menu||use_text_input);//input of any sort
has to be made
- if(((!info.key_down && (info.key[SDLK_RETURN] ||
info.key[SDLK_KP_ENTER]) || info.double_clicked) &&
+ if((((!info.key_down && (info.key[SDLK_RETURN] ||
info.key[SDLK_KP_ENTER])) || info.double_clicked) &&
(type_ == YES_NO || type_ == OK_CANCEL || type_ == OK_ONLY || type_
== CLOSE_ONLY))) {
return (use_menu ? menu_->selection() : 0);
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits