From d1f4aa03e31092ac1434bbfb1ecc3eb3f58bc320 Mon Sep 17 00:00:00 2001 From: "Andrew \"Akari\" Alexeyew" Date: Sun, 29 Jul 2012 16:54:49 +0300 Subject: [PATCH] s/lastframeplayed/playpos/ --- src/replay.h | 2 +- src/stage.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/replay.h b/src/replay.h index 48a28268..73644aa2 100644 --- a/src/replay.h +++ b/src/replay.h @@ -39,7 +39,7 @@ typedef struct Replay { // The fields below should not be stored int capacity; int active; - int lastframeplayed; + int playpos; } Replay; enum { diff --git a/src/stage.c b/src/stage.c index 0dc20a52..71bf5f27 100644 --- a/src/stage.c +++ b/src/stage.c @@ -82,7 +82,7 @@ void replay_input() { return; int i; - for(i = global.replay.lastframeplayed; i < global.replay.ecount; ++i) { + for(i = global.replay.playpos; i < global.replay.ecount; ++i) { ReplayEvent *e = &(global.replay.events[i]); if(e->frame != global.frames) @@ -102,7 +102,7 @@ void replay_input() { } } - global.replay.lastframeplayed = i; + global.replay.playpos = i; player_applymovement(&global.plr); } @@ -449,7 +449,7 @@ void stage_loop(StageInfo* info, StageRule start, StageRule end, StageRule draw, global.plr.bombs = global.replay.plr_bombs; global.plr.power = global.replay.plr_power; - global.replay.lastframeplayed = 0; + global.replay.playpos = 0; } tsrand_switch(&global.rand_game);