Core: Warning fixes

This commit is contained in:
Shauren
2013-02-03 14:11:59 +01:00
parent 54924f18af
commit b346459ca8
4 changed files with 6 additions and 3 deletions

View File

@@ -48,7 +48,10 @@ ModelList model_list;
void LoadGameObjectModelList()
{
#ifndef NO_CORE_FUNCS
uint32 oldMSTime = getMSTime();
#endif
FILE* model_list_file = fopen((sWorld->GetDataPath() + "vmaps/" + VMAP::GAMEOBJECT_MODELS).c_str(), "rb");
if (!model_list_file)
{

View File

@@ -146,7 +146,7 @@ namespace Movement
//data.append<float>(&mov.m_float_values[SpeedWalk], SpeedMaxCount);
//if (mov.SplineEnabled())
{
MoveSplineFlag splineFlags = move_spline.splineflags;
MoveSplineFlag const& splineFlags = move_spline.splineflags;
data << splineFlags.raw();

View File

@@ -298,7 +298,7 @@ class boss_lord_marrowgar : public CreatureScript
case DATA_SPIKE_IMMUNE + 1:
case DATA_SPIKE_IMMUNE + 2:
{
int32 index = type - DATA_SPIKE_IMMUNE;
uint32 index = uint32(type - DATA_SPIKE_IMMUNE);
if (index < _boneSpikeImmune.size())
return _boneSpikeImmune[index];

View File

@@ -957,7 +957,7 @@ namespace MMAP
if (count != 1)
return false;
if (header.mmapMagic != MMAP_MAGIC || header.dtVersion != DT_NAVMESH_VERSION)
if (header.mmapMagic != MMAP_MAGIC || header.dtVersion != uint32(DT_NAVMESH_VERSION))
return false;
if (header.mmapVersion != MMAP_VERSION)