mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-17 19:23:51 +02:00
Quake 4 integrated with DoomRTX
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
|
||||
#include "precompiled.h"
|
||||
#pragma hdrstop
|
||||
|
||||
#include "../Game_local.h"
|
||||
|
||||
ABSTRACT_DECLARATION( idClass, idPhysics )
|
||||
END_CLASS
|
||||
|
||||
|
||||
/*
|
||||
================
|
||||
idPhysics::~idPhysics
|
||||
================
|
||||
*/
|
||||
idPhysics::~idPhysics( void ) {
|
||||
}
|
||||
|
||||
/*
|
||||
================
|
||||
idPhysics::Save
|
||||
================
|
||||
*/
|
||||
void idPhysics::Save( idSaveGame *savefile ) const {
|
||||
}
|
||||
|
||||
/*
|
||||
================
|
||||
idPhysics::Restore
|
||||
================
|
||||
*/
|
||||
void idPhysics::Restore( idRestoreGame *savefile ) {
|
||||
}
|
||||
|
||||
/*
|
||||
================
|
||||
idPhysics::SetClipBox
|
||||
================
|
||||
*/
|
||||
void idPhysics::SetClipBox( const idBounds &bounds, float density ) {
|
||||
SetClipModel( new idClipModel( idTraceModel( bounds ) ), density );
|
||||
}
|
||||
|
||||
/*
|
||||
================
|
||||
idPhysics::SnapTimeToPhysicsFrame
|
||||
================
|
||||
*/
|
||||
int idPhysics::SnapTimeToPhysicsFrame( int t ) {
|
||||
int s;
|
||||
// RAVEN BEGIN
|
||||
// bdube: use GetMSec access rather than USERCMD_TIME
|
||||
s = t + gameLocal.GetMSec() - 1;
|
||||
return ( s - s % gameLocal.GetMSec() );
|
||||
// RAVEN END
|
||||
}
|
||||
Reference in New Issue
Block a user