Merge remote-tracking branch 'gzdoom/master'
This commit is contained in:
commit
bde15af593
72 changed files with 1058 additions and 517 deletions
|
|
@ -46,6 +46,7 @@
|
|||
#include "i_interface.h"
|
||||
#include "p_tick.h"
|
||||
#include "actor.h"
|
||||
#include "actorinlines.h"
|
||||
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
|
@ -333,13 +334,13 @@ void RenderFrameModels(FModelRenderer *renderer, FLevelLocals *Level, const FSpr
|
|||
if(actor->modelData && !(actor->modelData->curAnim.flags & ANIMOVERRIDE_NONE))
|
||||
{
|
||||
double tic = actor->Level->totaltime;
|
||||
if ((ConsoleState == c_up || ConsoleState == c_rising) && (menuactive == MENU_Off || menuactive == MENU_OnNoPause) && !Level->isFrozen())
|
||||
if ((ConsoleState == c_up || ConsoleState == c_rising) && (menuactive == MENU_Off || menuactive == MENU_OnNoPause) && !actor->isFrozen())
|
||||
{
|
||||
tic += I_GetTimeFrac();
|
||||
}
|
||||
if(actor->modelData->curAnim.startTic > tic)
|
||||
{
|
||||
inter = (tic - actor->modelData->curAnim.switchTic) / (actor->modelData->curAnim.startTic - actor->modelData->curAnim.switchTic);
|
||||
inter = (tic - (actor->modelData->curAnim.startTic - actor->modelData->curAnim.switchOffset)) / actor->modelData->curAnim.switchOffset;
|
||||
|
||||
double nextFrame = actor->modelData->curAnim.startFrame;
|
||||
|
||||
|
|
@ -633,6 +634,9 @@ void InitModels()
|
|||
smf.animationIDs[0] = -1;
|
||||
smf.xscale = smf.yscale = smf.zscale = VoxelDefs[i]->Scale;
|
||||
smf.angleoffset = VoxelDefs[i]->AngleOffset.Degrees();
|
||||
smf.xoffset = VoxelDefs[i]->xoffset;
|
||||
smf.yoffset = VoxelDefs[i]->yoffset;
|
||||
smf.zoffset = VoxelDefs[i]->zoffset;
|
||||
// this helps catching uninitialized data.
|
||||
assert(VoxelDefs[i]->PitchFromMomentum == true || VoxelDefs[i]->PitchFromMomentum == false);
|
||||
if (VoxelDefs[i]->PitchFromMomentum) smf.flags |= MDL_PITCHFROMMOMENTUM;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue