fix some msvc warnings

This commit is contained in:
Tomasz Śniatowski 2009-05-01 23:30:21 +01:00
parent 1286b73f2e
commit a84b04ff90
3 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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;

View File

@ -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());