fixed problems with map updating on map scene

This commit is contained in:
Dave White 2003-11-14 18:56:05 +00:00
parent 0fc5a40daa
commit 15f4ee086a
2 changed files with 5 additions and 7 deletions

View file

@ -226,15 +226,14 @@ void show_map_scene(display& screen, config& data)
ydot = 0;
SDL_Rect dot_rect;
dot_rect.x = xdot;
dot_rect.y = ydot;
dot_rect.x = xdot + dstrect.x;
dot_rect.y = ydot + dstrect.y;
dot_rect.w = img->w;
dot_rect.h = img->h;
SDL_BlitSurface(img,NULL,image,&dot_rect);
SDL_BlitSurface(img,NULL,screen.video().getSurface(),&dot_rect);
SDL_BlitSurface(image,NULL,screen.video().getSurface(),&dstrect);
update_rect(dstrect);
update_rect(dot_rect);
for(int i = 0; i != 50; ++i) {
if(key[SDLK_ESCAPE]) {
@ -269,8 +268,6 @@ void show_map_scene(display& screen, config& data)
update_rect(font::draw_text(&screen,area,24,font::NORMAL_COLOUR,scenario,
dstrect.x,dstrect.y - scenario_size.h - 4));
SDL_BlitSurface(image,NULL,screen.video().getSurface(),&dstrect);
update_rect(dstrect);
screen.video().flip();
bool last_state = true;

View file

@ -142,6 +142,7 @@ LEVEL_RESULT play_level(game_data& gameinfo, config& terrain_config,
try {
if(first_time) {
const hotkey::basic_handler key_events_handler(gui);
clear_shroud(gui,map,gameinfo,units,teams,0);
update_locker lock_display(gui,recorder.skipping());