mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 00:24:40 +00:00
commit
57d92d522e
3 changed files with 12 additions and 9 deletions
|
|
@ -726,6 +726,7 @@ ParticleEmitter::ParticleEmitter()
|
||||||
mCurBuffSize = 0;
|
mCurBuffSize = 0;
|
||||||
|
|
||||||
mDead = false;
|
mDead = false;
|
||||||
|
mDataBlock = NULL;
|
||||||
|
|
||||||
// ParticleEmitter should be allocated on the client only.
|
// ParticleEmitter should be allocated on the client only.
|
||||||
mNetFlags.set( IsGhost );
|
mNetFlags.set( IsGhost );
|
||||||
|
|
|
||||||
|
|
@ -958,6 +958,7 @@ ShapeBase::~ShapeBase()
|
||||||
if( mShapeInstance && (mShapeInstance->getDebrisRefCount() == 0) )
|
if( mShapeInstance && (mShapeInstance->getDebrisRefCount() == 0) )
|
||||||
{
|
{
|
||||||
delete mShapeInstance;
|
delete mShapeInstance;
|
||||||
|
mShapeInstance = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
CollisionTimeout* ptr = mTimeoutList;
|
CollisionTimeout* ptr = mTimeoutList;
|
||||||
|
|
|
||||||
|
|
@ -241,6 +241,16 @@ void StandardMainLoop::init()
|
||||||
DebugOutputConsumer::init();
|
DebugOutputConsumer::init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// init Filesystem first, so we can actually log errors for all components that follow
|
||||||
|
Platform::FS::InstallFileSystems(); // install all drives for now until we have everything using the volume stuff
|
||||||
|
Platform::FS::MountDefaults();
|
||||||
|
|
||||||
|
// Set our working directory.
|
||||||
|
Torque::FS::SetCwd( "game:/" );
|
||||||
|
|
||||||
|
// Set our working directory.
|
||||||
|
Platform::setCurrentDirectory( Platform::getMainDotCsDir() );
|
||||||
|
|
||||||
Processor::init();
|
Processor::init();
|
||||||
Math::init();
|
Math::init();
|
||||||
Platform::init(); // platform specific initialization
|
Platform::init(); // platform specific initialization
|
||||||
|
|
@ -386,15 +396,6 @@ bool StandardMainLoop::handleCommandLine( S32 argc, const char **argv )
|
||||||
for (i = 0; i < argc; i++)
|
for (i = 0; i < argc; i++)
|
||||||
Con::setVariable(avar("Game::argv%d", i), argv[i]);
|
Con::setVariable(avar("Game::argv%d", i), argv[i]);
|
||||||
|
|
||||||
Platform::FS::InstallFileSystems(); // install all drives for now until we have everything using the volume stuff
|
|
||||||
Platform::FS::MountDefaults();
|
|
||||||
|
|
||||||
// Set our working directory.
|
|
||||||
Torque::FS::SetCwd( "game:/" );
|
|
||||||
|
|
||||||
// Set our working directory.
|
|
||||||
Platform::setCurrentDirectory( Platform::getMainDotCsDir() );
|
|
||||||
|
|
||||||
#ifdef TORQUE_PLAYER
|
#ifdef TORQUE_PLAYER
|
||||||
if(argc > 2 && dStricmp(argv[1], "-project") == 0)
|
if(argc > 2 && dStricmp(argv[1], "-project") == 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue