mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Make attached objects visible in 3rd person view
This commit is contained in:
parent
3b65a6a36c
commit
40226e5274
5 changed files with 43 additions and 14 deletions
|
@ -2400,6 +2400,15 @@ void ClientEnvironment::addSimpleObject(ClientSimpleObject *simple)
|
|||
m_simple_objects.push_back(simple);
|
||||
}
|
||||
|
||||
GenericCAO* ClientEnvironment::getGenericCAO(u16 id)
|
||||
{
|
||||
ClientActiveObject *obj = getActiveObject(id);
|
||||
if (obj && obj->getType() == ACTIVEOBJECT_TYPE_GENERIC)
|
||||
return (GenericCAO*) obj;
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ClientActiveObject* ClientEnvironment::getActiveObject(u16 id)
|
||||
{
|
||||
std::map<u16, ClientActiveObject*>::iterator n;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue