mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 07:19:54 +00:00
Merge pull request #1797 from Capostrophic/moveobject
Fix double call of addContainerScripts on player in moveObject (bug #4490)
This commit is contained in:
commit
13d8fba223
2 changed files with 9 additions and 3 deletions
|
@ -22,6 +22,7 @@
|
|||
Bug #3997: Almalexia doesn't pace
|
||||
Bug #4036: Weird behaviour of AI packages if package target has non-unique ID
|
||||
Bug #4047: OpenMW not reporting its version number in MacOS; OpenMW-CS not doing it fully
|
||||
Bug #4110: Fixed undo / redo menu text losing the assigned shortcuts
|
||||
Bug #4125: OpenMW logo cropped on bugtracker
|
||||
Bug #4215: OpenMW shows book text after last EOL tag
|
||||
Bug #4221: Characters get stuck in V-shaped terrain
|
||||
|
@ -55,8 +56,9 @@
|
|||
Bug #4474: No fallback when getVampireHead fails
|
||||
Bug #4475: Scripted animations should not cause movement
|
||||
Bug #4479: "Game" category on Advanced page is getting too long
|
||||
Bug #4480: Segfalt in QuickKeysMenu when item no longer in inventory
|
||||
Bug #4110: Fixed undo / redo menu text losing the assigned shortcuts
|
||||
Bug #4480: Segfault in QuickKeysMenu when item no longer in inventory
|
||||
Bug #4489: Goodbye doesn't block dialogue hyperlinks
|
||||
Bug #4490: PositionCell on player gives "Error: tried to add local script twice"
|
||||
Feature #2606: Editor: Implemented (optional) case sensitive global search
|
||||
Feature #3276: Editor: Search- Show number of (remaining) search results and indicate a search without any results
|
||||
Feature #3641: Editor: Limit FPS in 3d preview window
|
||||
|
|
|
@ -1166,7 +1166,10 @@ namespace MWWorld
|
|||
if (isPlayer)
|
||||
{
|
||||
if (!newCell->isExterior())
|
||||
{
|
||||
changeToInteriorCell(Misc::StringUtils::lowerCase(newCell->getCell()->mName), pos, false);
|
||||
removeContainerScripts(getPlayerPtr());
|
||||
}
|
||||
else
|
||||
{
|
||||
if (mWorldScene->isCellActive(*newCell))
|
||||
|
@ -1187,7 +1190,8 @@ namespace MWWorld
|
|||
mWorldScene->addObjectToScene(newPtr);
|
||||
|
||||
std::string script = newPtr.getClass().getScript(newPtr);
|
||||
if (!script.empty()) {
|
||||
if (!script.empty())
|
||||
{
|
||||
mLocalScripts.add(script, newPtr);
|
||||
}
|
||||
addContainerScripts(newPtr, newCell);
|
||||
|
|
Loading…
Reference in a new issue