X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftools.c;h=2626f2e4195c99b3aee3e5cd67de8e17502b7da2;hp=258c99a6517a72c65b3c205214920884a8483bcf;hb=78ec772d11cb8823d8dca05c227b472da8708a07;hpb=56fed90e3cabb9ef3052a15e6d49b47eead2cd09 diff --git a/src/tools.c b/src/tools.c index 258c99a6..2626f2e4 100644 --- a/src/tools.c +++ b/src/tools.c @@ -460,8 +460,7 @@ void DrawPlayer(struct PlayerInfo *player) int graphic, phase; boolean player_is_moving = (last_jx != jx || last_jy != jy ? TRUE : FALSE); - if (!player->active || player->gone || - !IN_SCR_FIELD(SCREENX(last_jx), SCREENY(last_jy))) + if (!player->active || !IN_SCR_FIELD(SCREENX(last_jx), SCREENY(last_jy))) return; #if DEBUG @@ -524,7 +523,7 @@ void DrawPlayer(struct PlayerInfo *player) /* draw player himself */ - if (game_emulation == EMU_SUPAPLEX) + if (game.emulation == EMU_SUPAPLEX) { static int last_dir = MV_LEFT; int action = (player->programmed_action ? player->programmed_action : @@ -649,7 +648,7 @@ void DrawPlayer(struct PlayerInfo *player) phase = 7 - phase; } - if (game_emulation == EMU_SUPAPLEX) + if (game.emulation == EMU_SUPAPLEX) DrawGraphic(sx, sy, GFX_SP_DISK_RED); else DrawGraphicThruMask(sx, sy, graphic + phase);