s/lastframeplayed/playpos/

This commit is contained in:
Andrew "Akari" Alexeyew 2012-07-29 16:54:49 +03:00
parent d793bb61a4
commit d1f4aa03e3
2 changed files with 4 additions and 4 deletions

View file

@ -39,7 +39,7 @@ typedef struct Replay {
// The fields below should not be stored
int capacity;
int active;
int lastframeplayed;
int playpos;
} Replay;
enum {

View file

@ -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);