1
0

Fixed MSVC warnings in SoundEffect functions.

This commit is contained in:
madmaxoft
2014-07-13 13:31:09 +02:00
parent 9b0b57bcbc
commit 31415aec63
3 changed files with 7 additions and 15 deletions

View File

@@ -652,7 +652,7 @@ void cChunkMap::BroadcastSoundEffect(const AString & a_SoundName, double a_X, do
cCSLock Lock(m_CSLayers);
int ChunkX, ChunkZ;
cChunkDef::BlockToChunk(std::floor(a_X), std::floor(a_Z), ChunkX, ChunkZ);
cChunkDef::BlockToChunk((int)std::floor(a_X), (int)std::floor(a_Z), ChunkX, ChunkZ);
cChunkPtr Chunk = GetChunkNoGen(ChunkX, 0, ChunkZ);
if (Chunk == NULL)
{