Pachi: fixed monsters not shown on G1

This commit is contained in:
pelya
2010-11-02 13:59:22 +02:00
parent 194f420523
commit 1bdd3e133c
5 changed files with 40 additions and 12 deletions

View File

@@ -195,7 +195,7 @@ void print_monsters()
oldmonsterposreal.x = int(M_x[n]+R_gamearea_x);
oldmonsterposreal.y = int(M_y[n]+R_gamearea_y);
monstersrc.y = M_type[n] * M_h;
monstersrc.y = 0;//M_type[n] * M_h;
monstersrc.x = ((M_frame - 1)+(M_direction[n]*M_frames)) * M_w;
monstersrc.h = M_h;
monstersrc.w = M_w;
@@ -207,7 +207,7 @@ void print_monsters()
monsterposreal.y = monsterpos.y + R_gamearea_y;
//SDL_BlitSurface(screenbak, &oldmonsterpos, screen, &oldmonsterposreal);
SDL_BlitSurface(monsters, &monstersrc, screen, &monsterposreal);
SDL_BlitSurface(monsters[n], &monstersrc, screen, &monsterposreal);
//SDL_UpdateRect(screen,oldmonsterposreal.x,oldmonsterposreal.y,M_w,M_h);
//SDL_UpdateRect(screen,monsterposreal.x,monsterposreal.y,M_w,M_h);
}