made time of day images update properly. Fixed assertion failures.

This commit is contained in:
Dave White 2003-11-08 17:21:36 +00:00
parent e4ad5996f3
commit e97403824f
2 changed files with 2 additions and 2 deletions

View file

@ -536,7 +536,7 @@ void display::draw_game_status(int x, int y)
if(tod_surface != NULL) {
//hardcoded values as to where the time of day image appears
blit_surface(mapx() + TimeOfDay_x,TimeOfDay_y,tod_surface);
update_rect(TimeOfDay_x,TimeOfDay_y,tod_surface->w,tod_surface->h);
update_rect(mapx() + TimeOfDay_x,TimeOfDay_y,tod_surface->w,tod_surface->h);
}
if(gameStatusRect_.w > 0) {

View file

@ -177,7 +177,7 @@ int turn_info::send_data(int first_command)
void turn_info::handle_event(const SDL_Event& event)
{
if(gui::in_dialog())
if(gui::in_dialog() || commands_disabled)
return;
switch(event.type) {