Initial convertion of a_Dt to std::chrono
also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
This commit is contained in:
@@ -88,11 +88,11 @@ cFireSimulator::~cFireSimulator()
|
||||
|
||||
|
||||
|
||||
void cFireSimulator::SimulateChunk(float a_Dt, int a_ChunkX, int a_ChunkZ, cChunk * a_Chunk)
|
||||
void cFireSimulator::SimulateChunk(std::chrono::milliseconds a_Dt, int a_ChunkX, int a_ChunkZ, cChunk * a_Chunk)
|
||||
{
|
||||
cCoordWithIntList & Data = a_Chunk->GetFireSimulatorData();
|
||||
|
||||
int NumMSecs = (int)a_Dt;
|
||||
int NumMSecs = a_Dt.count();
|
||||
for (cCoordWithIntList::iterator itr = Data.begin(); itr != Data.end();)
|
||||
{
|
||||
int x = itr->x;
|
||||
|
||||
Reference in New Issue
Block a user