Fixed type conversion warnings.
This commit is contained in:
parent
e38f41d32f
commit
83ed6a2c1b
@ -92,7 +92,7 @@ void cFireSimulator::SimulateChunk(std::chrono::milliseconds a_Dt, int a_ChunkX,
|
|||||||
{
|
{
|
||||||
cCoordWithIntList & Data = a_Chunk->GetFireSimulatorData();
|
cCoordWithIntList & Data = a_Chunk->GetFireSimulatorData();
|
||||||
|
|
||||||
int NumMSecs = a_Dt.count();
|
int NumMSecs = static_cast<int>(a_Dt.count());
|
||||||
for (cCoordWithIntList::iterator itr = Data.begin(); itr != Data.end();)
|
for (cCoordWithIntList::iterator itr = Data.begin(); itr != Data.end();)
|
||||||
{
|
{
|
||||||
int x = itr->x;
|
int x = itr->x;
|
||||||
|
@ -905,14 +905,14 @@ void cWorld::Tick(std::chrono::milliseconds a_Dt, std::chrono::milliseconds a_La
|
|||||||
|
|
||||||
m_ChunkMap->Tick(a_Dt);
|
m_ChunkMap->Tick(a_Dt);
|
||||||
|
|
||||||
TickClients(a_Dt.count());
|
TickClients(static_cast<float>(a_Dt.count()));
|
||||||
TickQueuedBlocks();
|
TickQueuedBlocks();
|
||||||
TickQueuedTasks();
|
TickQueuedTasks();
|
||||||
TickScheduledTasks();
|
TickScheduledTasks();
|
||||||
|
|
||||||
GetSimulatorManager()->Simulate(a_Dt.count());
|
GetSimulatorManager()->Simulate(static_cast<float>(a_Dt.count()));
|
||||||
|
|
||||||
TickWeather(a_Dt.count());
|
TickWeather(static_cast<float>(a_Dt.count()));
|
||||||
|
|
||||||
m_ChunkMap->FastSetQueuedBlocks();
|
m_ChunkMap->FastSetQueuedBlocks();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user