mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-21 02:51:46 +00:00
- WHaven: Fix sprite interpolation issues.
This commit is contained in:
parent
aa4470a237
commit
ed942ab1b7
2 changed files with 16 additions and 1 deletions
|
@ -301,6 +301,19 @@ bool playrunning()
|
|||
return (paused == 0 || multiplayer/* || demoplay/record*/);
|
||||
}
|
||||
|
||||
static void recordoldspritepos()
|
||||
{
|
||||
for (int i = 0; i < MAXSPRITES; i++)
|
||||
{
|
||||
SPRITE* spr = &sprite[i];
|
||||
Loc* oldLoc = &oldLocs[i];
|
||||
oldLoc->x = spr->x;
|
||||
oldLoc->y = spr->y;
|
||||
oldLoc->z = spr->z;
|
||||
oldLoc->ang = spr->ang;
|
||||
}
|
||||
}
|
||||
|
||||
void GameInterface::Ticker()
|
||||
{
|
||||
// Make copies so that the originals do not have to be modified.
|
||||
|
@ -323,6 +336,8 @@ void GameInterface::Ticker()
|
|||
PLAYER &plr = player[pyrn];
|
||||
viewBackupPlayerLoc(pyrn);
|
||||
|
||||
recordoldspritepos();
|
||||
|
||||
processinput(pyrn);
|
||||
updateviewmap(plr);
|
||||
updatepaletteshifts();
|
||||
|
|
|
@ -389,7 +389,7 @@ struct Loc
|
|||
{
|
||||
int x, y, z, ang;
|
||||
};
|
||||
extern Loc oldLoc[MAXSPRITES];
|
||||
extern Loc oldLocs[MAXSPRITES];
|
||||
|
||||
struct ANIMATION
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue