mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[11114] Reset camera view at removing from world
this helps us to clean reference between viewpoint and camera in some cases
This commit is contained in:
parent
8069cf09d2
commit
b2d81eae1b
2 changed files with 4 additions and 1 deletions
|
|
@ -2037,6 +2037,9 @@ void Player::RemoveFromWorld()
|
||||||
///- Do not add/remove the player from the object storage
|
///- Do not add/remove the player from the object storage
|
||||||
///- It will crash when updating the ObjectAccessor
|
///- It will crash when updating the ObjectAccessor
|
||||||
///- The player should only be removed when logging out
|
///- The player should only be removed when logging out
|
||||||
|
if (IsInWorld())
|
||||||
|
GetCamera().ResetView();
|
||||||
|
|
||||||
Unit::RemoveFromWorld();
|
Unit::RemoveFromWorld();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11113"
|
#define REVISION_NR "11114"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue