s/lastframeplayed/playpos/
This commit is contained in:
parent
d793bb61a4
commit
d1f4aa03e3
2 changed files with 4 additions and 4 deletions
|
@ -39,7 +39,7 @@ typedef struct Replay {
|
|||
// The fields below should not be stored
|
||||
int capacity;
|
||||
int active;
|
||||
int lastframeplayed;
|
||||
int playpos;
|
||||
} Replay;
|
||||
|
||||
enum {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue