mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 00:18:37 +00:00
fix some msvc warnings
This commit is contained in:
parent
1286b73f2e
commit
a84b04ff90
@ -532,7 +532,7 @@ namespace {
|
||||
|
||||
} // end anonymous namespace (2)
|
||||
|
||||
static bool events_init() { return game_events::resources->screen; }
|
||||
static bool events_init() { return game_events::resources->screen != 0; }
|
||||
|
||||
namespace {
|
||||
|
||||
|
@ -59,7 +59,7 @@ class twindow
|
||||
, public cursor::setter
|
||||
{
|
||||
friend class tdebug_layout_graph;
|
||||
friend class twindow_implementation;
|
||||
friend struct twindow_implementation;
|
||||
|
||||
// Wants to use layout().
|
||||
friend class tmessage;
|
||||
|
@ -216,7 +216,7 @@ static server_type open_connection(game_display& disp, const std::string& origin
|
||||
std::string password = preferences::password();
|
||||
|
||||
bool fall_through = (*error)["force_confirmation"] == "yes" ?
|
||||
gui::dialog(disp,_("Confirm"),(*error)["message"],gui::OK_CANCEL).show() :
|
||||
(gui::dialog(disp,_("Confirm"),(*error)["message"],gui::OK_CANCEL).show() != 0) :
|
||||
false;
|
||||
|
||||
const bool is_pw_request = !((*error)["password_request"].empty()) && !(password.empty());
|
||||
|
Loading…
x
Reference in New Issue
Block a user