From 04bbd3bcec4a7767de97d71ae54defc68e45a88d Mon Sep 17 00:00:00 2001 From: gfgtdf Date: Thu, 5 Mar 2015 16:57:13 +0100 Subject: [PATCH] remove some SDL_Delay() calls. --- src/playmp_controller.cpp | 3 +-- src/playsingle_controller.cpp | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/playmp_controller.cpp b/src/playmp_controller.cpp index cd953c102e72..df0ddbe48b55 100644 --- a/src/playmp_controller.cpp +++ b/src/playmp_controller.cpp @@ -135,7 +135,7 @@ void playmp_controller::play_human_turn() } show_turn_dialog(); if(undo_stack_->can_undo()) { - // If we reload a networked mp game we cannot undo moved made before the save + // If we reload a networked mp game we cannot undo moves made before the save // Becasue other players already received them synced_context::run_and_store("update_shroud", replay_helper::get_update_shroud()); undo_stack_->clear(); @@ -173,7 +173,6 @@ void playmp_controller::play_human_turn() play_slice_catch(); if(timer) { - SDL_Delay(1); bool time_left = timer->update(); if(!time_left) { diff --git a/src/playsingle_controller.cpp b/src/playsingle_controller.cpp index 6fe8c825bf93..8f2c6291d40d 100644 --- a/src/playsingle_controller.cpp +++ b/src/playsingle_controller.cpp @@ -737,7 +737,6 @@ void playsingle_controller::play_ai_turn() gui_->invalidate_game_status(); gui_->invalidate_all(); gui_->draw(); - gui_->delay(100); }