removed the option to show deprecated WML messages in a dialog,
it's really too annoying
This commit is contained in:
parent
bf79efca10
commit
ae269e7fee
3 changed files with 1 additions and 24 deletions
|
@ -32,13 +32,6 @@ AC_CONFIG_COMMANDS([src/wesconfig.h],
|
|||
# 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
|
||||
|
|
|
@ -158,16 +158,7 @@ static void show_wml_errors()
|
|||
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';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue