mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 12:30:40 +00:00
- Duke: Back up all sprites as soon as possible.
* The player's input is processed before the sprites were backed up, causing interpolation issues with the player's Z.
This commit is contained in:
parent
abd6275f17
commit
9972c65842
5 changed files with 6 additions and 21 deletions
|
@ -4370,24 +4370,6 @@ DDukeActor *LocateTheLocator(int n, sectortype* sect)
|
|||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
void recordoldspritepos()
|
||||
{
|
||||
for (int statNum = 0; statNum < MAXSTATUS; statNum++)
|
||||
{
|
||||
DukeStatIterator it(statNum);
|
||||
while (auto ac = it.Next())
|
||||
{
|
||||
ac->backuploc();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
void movefta(void)
|
||||
{
|
||||
|
|
|
@ -3270,7 +3270,6 @@ void think_d(void)
|
|||
{
|
||||
thinktime.Reset();
|
||||
thinktime.Clock();
|
||||
recordoldspritepos();
|
||||
|
||||
movefta(); //ST 2
|
||||
moveweapons_d(); //ST 4
|
||||
|
|
|
@ -3739,7 +3739,6 @@ void think_r(void)
|
|||
{
|
||||
thinktime.Reset();
|
||||
thinktime.Clock();
|
||||
recordoldspritepos();
|
||||
|
||||
movefta(); //ST 2
|
||||
moveweapons_r(); //ST 4
|
||||
|
|
|
@ -226,7 +226,6 @@ int playercolor2lookup(int color);
|
|||
void PlayerColorChanged(void);
|
||||
bool movementBlocked(player_struct *p);
|
||||
void loadcons();
|
||||
void recordoldspritepos();
|
||||
void DrawStatusBar();
|
||||
|
||||
inline int32_t krand(void)
|
||||
|
|
|
@ -69,6 +69,12 @@ void GameInterface::Ticker()
|
|||
ud.cameraactor = nullptr;
|
||||
everyothertime++;
|
||||
|
||||
DukeSpriteIterator it;
|
||||
while (auto ac = it.Next())
|
||||
{
|
||||
ac->backuploc();
|
||||
}
|
||||
|
||||
global_random = krand();
|
||||
fi.movetransports();//ST 9
|
||||
movedummyplayers();//ST 13
|
||||
|
|
Loading…
Reference in a new issue