1
0

Fixed type conversion warnings.

This commit is contained in:
Mattes D 2015-01-18 11:25:16 +01:00
parent e38f41d32f
commit 83ed6a2c1b
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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();