Fix compilation warnings.

This commit is contained in:
Guillaume Melquiond 2005-06-03 05:28:48 +00:00
parent 859dfa809b
commit 7abafe8311
3 changed files with 2 additions and 4 deletions

View file

@ -155,10 +155,10 @@ private:
};
game_controller::game_controller(int argc, char** argv, bool use_sound)
: argc_(argc), arg_(1), argv_(argv),
: argc_(argc), arg_(1), argv_(argv), thread_manager(),
sound_manager_(use_sound), test_mode_(false), multiplayer_mode_(false),
no_gui_(false), use_caching_(true), force_bpp_(-1), disp_(NULL),
loaded_game_show_replay_(false), thread_manager()
loaded_game_show_replay_(false)
{
for(arg_ = 1; arg_ != argc_; ++arg_) {
const std::string val(argv_[arg_]);

View file

@ -923,7 +923,6 @@ network::connection network_connect_dialog(display& disp, const std::string& msg
{
const size_t width = 250;
const size_t height = 20;
const size_t border = 20;
const int left = disp.x()/2 - width/2;
const int top = disp.y()/2 - height/2;

View file

@ -339,7 +339,6 @@ void CVideo::flip()
sum += update_rects[n].w*update_rects[n].h;
}
const int t = SDL_GetTicks();
const size_t redraw_whole_screen_threshold = 80;
if(sum > ((getx()*gety())*redraw_whole_screen_threshold)/100) {
::SDL_Flip(frameBuffer);