Fix player not moving on demo playback
It's still broken, though. FossilOrigin-Name: 57b9a0a9db7ea3e3656f9a9d979d1df629783c355cbc46bbe96c3d4befda0bcd
This commit is contained in:
parent
2c939e6535
commit
9d7eef8185
1 changed files with 5 additions and 0 deletions
|
@ -479,7 +479,12 @@ demoplaybackstep()
|
||||||
playerhistory.lastObject.lastupdate != playbacktime)) {
|
playerhistory.lastObject.lastupdate != playbacktime)) {
|
||||||
DynamicEntity *d = [target copy];
|
DynamicEntity *d = [target copy];
|
||||||
d.lastupdate = playbacktime;
|
d.lastupdate = playbacktime;
|
||||||
|
|
||||||
|
if (playerhistory == nil)
|
||||||
|
playerhistory = [[OFMutableArray alloc] init];
|
||||||
|
|
||||||
[playerhistory addObject:d];
|
[playerhistory addObject:d];
|
||||||
|
|
||||||
if (playerhistory.count > 20)
|
if (playerhistory.count > 20)
|
||||||
[playerhistory removeObjectAtIndex:0];
|
[playerhistory removeObjectAtIndex:0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue