mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-09 12:22:34 +01:00
Change default object timeOff from 0 to 24
Remove now-useless check in ObjectRenderer
This commit is contained in:
parent
397e8ecba8
commit
a56b25d4cd
@ -81,7 +81,8 @@ bool LoaderIDE::load(const std::string &filename)
|
||||
objs->timeOff = atoi(buff.c_str());
|
||||
}
|
||||
else {
|
||||
objs->timeOff = objs->timeOn = 0;
|
||||
objs->timeOn = 0;
|
||||
objs->timeOff = 24;
|
||||
}
|
||||
|
||||
// Put stuff in our struct
|
||||
|
@ -198,8 +198,6 @@ void ObjectRenderer::renderInstance(InstanceObject *instance,
|
||||
|
||||
|
||||
// Handles times provided by TOBJ data
|
||||
if (instance->object->timeOn != 0 || instance->object->timeOff != 0)
|
||||
{
|
||||
const auto currentHour = m_world->getHour();
|
||||
if (instance->object->timeOff < instance->object->timeOn)
|
||||
{
|
||||
@ -209,7 +207,6 @@ void ObjectRenderer::renderInstance(InstanceObject *instance,
|
||||
if ( currentHour >= instance->object->timeOff || currentHour < instance->object->timeOn )
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
auto matrixModel = instance->getTimeAdjustedTransform(m_renderAlpha);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user