diff --git a/src/Client/GUI/CM2MeshFileLoader.cpp b/src/Client/GUI/CM2MeshFileLoader.cpp index edd445b..297ed20 100644 --- a/src/Client/GUI/CM2MeshFileLoader.cpp +++ b/src/Client/GUI/CM2MeshFileLoader.cpp @@ -211,7 +211,7 @@ if(M2Vertices.size()>0) for(u32 i=0;igetMaterial(0).setFlag(video::EMF_FOG_ENABLE, true); text=_smgr->addTextSceneNode(_guienv->getBuiltInFont(), L"TestText" , irr::video::SColor(255,255,255,255),cube, irr::core::vector3df(0,5,0)); - if(_obj->IsPlayer()) + if(_obj->IsPlayer()) { text->setTextColor(irr::video::SColor(255,255,0,0)); } @@ -80,7 +80,7 @@ void DrawObject::_Init(void) { text->setTextColor(irr::video::SColor(255,0,0,255)); } - + } DEBUG(logdebug("initialize DrawObject 0x%X obj: 0x%X "I64FMT,this,_obj,_obj->GetGUID())) diff --git a/src/Client/GUI/SceneWorld.cpp b/src/Client/GUI/SceneWorld.cpp index eba8dd0..e778fcc 100644 --- a/src/Client/GUI/SceneWorld.cpp +++ b/src/Client/GUI/SceneWorld.cpp @@ -303,7 +303,7 @@ void SceneWorld::UpdateTerrain(void) if(doodad) { doodad->setPosition(core::vector3df(-d->x, d->z, -d->y)); - doodad->setRotation(core::vector3df(270+d->ox, -d->oy-90, -d->oz)); // +270 solves M2 models lying on the side + doodad->setRotation(core::vector3df(270-d->ox, -d->oy-90, -d->oz)); // +270 solves M2 models lying on the side } } }