remove some SDL_Delay() calls.

This commit is contained in:
gfgtdf 2015-03-05 16:57:13 +01:00
parent 017dbdeeb8
commit 04bbd3bcec
2 changed files with 1 additions and 3 deletions

View file

@ -135,7 +135,7 @@ void playmp_controller::play_human_turn()
} }
show_turn_dialog(); show_turn_dialog();
if(undo_stack_->can_undo()) { 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 // Becasue other players already received them
synced_context::run_and_store("update_shroud", replay_helper::get_update_shroud()); synced_context::run_and_store("update_shroud", replay_helper::get_update_shroud());
undo_stack_->clear(); undo_stack_->clear();
@ -173,7 +173,6 @@ void playmp_controller::play_human_turn()
play_slice_catch(); play_slice_catch();
if(timer) if(timer)
{ {
SDL_Delay(1);
bool time_left = timer->update(); bool time_left = timer->update();
if(!time_left) if(!time_left)
{ {

View file

@ -737,7 +737,6 @@ void playsingle_controller::play_ai_turn()
gui_->invalidate_game_status(); gui_->invalidate_game_status();
gui_->invalidate_all(); gui_->invalidate_all();
gui_->draw(); gui_->draw();
gui_->delay(100);
} }