forked from teamnwah/openmw-tes3coop
Add comment
This commit is contained in:
parent
bf915d929a
commit
fc6aa256bf
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ namespace
|
|||
std::string model = Misc::ResourceHelpers::correctActorModelPath(ptr.getClass().getModel(ptr));
|
||||
std::string id = ptr.getClass().getId(ptr);
|
||||
if (id == "prisonmarker" || id == "divinemarker" || id == "templemarker" || id == "northmarker")
|
||||
model = "";
|
||||
model = ""; // marker objects that have a hardcoded function in the game logic, should be hidden from the player
|
||||
rendering.addObject(ptr, model);
|
||||
ptr.getClass().insertObject (ptr, model, physics);
|
||||
}
|
||||
|
|
|
@ -2108,7 +2108,7 @@ namespace MWWorld
|
|||
|
||||
const OEngine::Physic::PhysicActor *physactor = mPhysEngine->getCharacter(refdata.getHandle());
|
||||
if (!physactor)
|
||||
return 0; // shouldn't happen
|
||||
throw std::runtime_error("can't find player");
|
||||
|
||||
if((!physactor->getOnGround()&&physactor->getCollisionMode()) || isUnderwater(currentCell, playerPos) || isWalkingOnWater(player))
|
||||
return 2;
|
||||
|
|
Loading…
Reference in a new issue