Author: mordante
Date: Thu May 24 20:29:29 2007
New Revision: 17831

URL: http://svn.gna.org/viewcvs/wesnoth?rev=17831&view=rev
Log:
removed the option to show deprecated WML messages in a dialog, it's really too 
annoying

Modified:
    trunk/configure.ac
    trunk/src/game_events.cpp
    trunk/src/wesconfig.h

Modified: trunk/configure.ac
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/configure.ac?rev=17831&r1=17830&r2=17831&view=diff
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Thu May 24 20:29:29 2007
@@ -32,13 +32,6 @@
 #  define LOCALEDIR "translations"
 # endif
 #endif
-/**
- * WML errors can be shown in 2 ways, as dialog or as chat message
- * if WML_ERROR_DIALOG == 1 it's shown as dialog else as chat message
- * for development versions the dialog should be used for the stable
- * releases the chat messages
- */
-#define WML_ERROR_DIALOG 0
 
 /**
  * Some older savegames of Wesnoth can't be loaded anymore this

Modified: trunk/src/game_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_events.cpp?rev=17831&r1=17830&r2=17831&view=diff
==============================================================================
--- trunk/src/game_events.cpp (original)
+++ trunk/src/game_events.cpp Thu May 24 20:29:29 2007
@@ -158,16 +158,7 @@
                        msg << " (" << itor->second << ")";
                }
                                        
-               if(WML_ERROR_DIALOG == 1) {
-                       // show in a dialog
-                       gui::dialog msg_dlg(*screen, caption, msg.str(), 
gui::OK_ONLY);
-                       msg_dlg.show(-1 ,-1);
-                       
-               } else {
-                       // show as chat message
-                       screen->add_chat_message(caption, 0, msg.str(), 
display::MESSAGE_PUBLIC, false);
-               }
-                       
+               screen->add_chat_message(caption, 0, msg.str(), 
display::MESSAGE_PUBLIC, false);
                std::cerr << caption << ": " << msg.str() << '\n';
        }
 }

Modified: trunk/src/wesconfig.h
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/wesconfig.h?rev=17831&r1=17830&r2=17831&view=diff
==============================================================================
--- trunk/src/wesconfig.h (original)
+++ trunk/src/wesconfig.h Thu May 24 20:29:29 2007
@@ -11,13 +11,6 @@
 #  define LOCALEDIR "translations"
 # endif
 #endif
-/**
- * WML errors can be shown in 2 ways, as dialog or as chat message
- * if WML_ERROR_DIALOG == 1 it's shown as dialog else as chat message
- * for development versions the dialog should be used for the stable
- * releases the chat messages
- */
-#define WML_ERROR_DIALOG 0
 
 /**
  * Some older savegames of Wesnoth can't be loaded anymore this


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to