1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 18:19:55 +00:00
openmw-tes3mp/apps/openmw/mwworld
fredzio e5fa457fe7 Properly account for interleaved move of actors.
Before this change, if an actor position was changed while the physics
simulation was running, the simulation result would be discarded. It is
fine in case of one off event such as teleport, but in the case of
scripts making use of this functionality to make lifts or conveyor (such
as Sotha Sil Expanded mod) it broke actor movement.

To alleviate this issue, at the end of the simulation, the position of the Actor
in the world is compared to the position it had at the beginning of the
simulation. A difference indicate a force move occured. In this case,
the Actor mPosition and mPreviousPosition are translated by the difference of position.

Since the Actor position will be really set while the next simulation runs, we
save it in the mNextPosition field.
2020-11-14 20:39:16 +01:00
..
action.cpp Make the PlayMode and PlayType enums scoped 2017-09-15 02:36:59 -07:00
action.hpp Adjustments to RemoveItem behavior 2017-04-13 22:33:13 +09:00
actionalchemy.cpp Include cleanup 2019-02-19 18:40:33 +03:00
actionalchemy.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
actionapply.cpp Added MWMechanics::isPlayerInCombat() 2015-09-10 18:48:34 +12:00
actionapply.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
actiondoor.cpp Opening doors 2013-04-28 14:59:15 +02:00
actiondoor.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
actioneat.cpp Include cleanup 2019-02-19 18:40:33 +03:00
actioneat.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
actionequip.cpp Improve equipment logic (bug #5223) 2019-12-14 22:30:27 +04:00
actionequip.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
actionharvest.cpp Rework container resolution (#3006) 2020-10-13 17:46:32 +02:00
actionharvest.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
actionopen.cpp Allow ActionOpen and ActionTalk only for player (bug #5210 2019-11-18 12:41:11 +04:00
actionopen.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
actionread.cpp Implement sBookSkillMessage GMST 2018-04-02 21:12:38 +03:00
actionread.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
actionrepair.cpp Remove redundant includes 2019-02-23 08:02:12 +04:00
actionrepair.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
actionsoulgem.cpp Include cleanup 2019-02-19 18:40:33 +03:00
actionsoulgem.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
actiontake.cpp Use drag and drop for ActionTake when InventoryWindow is active (bug #4543) 2018-09-10 15:18:07 +04:00
actiontake.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
actiontalk.cpp Allow ActionOpen and ActionTalk only for player (bug #5210 2019-11-18 12:41:11 +04:00
actiontalk.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
actionteleport.cpp Fix follower aggression when traveling. Summoning still has problems but less intrusive than current implementation. 2020-10-03 20:05:17 +00:00
actionteleport.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
actiontrap.cpp Implement and use getDistanceToFacedObject() 2016-07-08 23:28:49 +09:00
actiontrap.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
cellpreloader.cpp Merge pull request #3018 from akortunov/emplace 2020-11-01 01:58:56 +03:00
cellpreloader.hpp avoid pagerebuild when reloading a same save 2020-06-13 00:22:28 +02:00
cellref.cpp Avoid copying strings in SearchVisitor and readReferenceCollection 2019-10-28 19:28:14 +03:00
cellref.hpp Avoid copying strings in SearchVisitor and readReferenceCollection 2019-10-28 19:28:14 +03:00
cellreflist.hpp Fix possible reference duplication when the refID is modified by a plugin (Bug #3471) 2016-07-22 03:58:23 +02:00
cells.cpp Merge branch 'radioactive' into 'master' 2020-10-20 16:56:22 +00:00
cells.hpp Merge branch 'radioactive' into 'master' 2020-10-20 16:56:22 +00:00
cellstore.cpp Rework container resolution (#3006) 2020-10-13 17:46:32 +02:00
cellstore.hpp Allow targeting non-unique actors with StartScript (bug #2311) 2020-05-10 14:57:06 +02:00
cellvisitors.hpp Replace all NULLs to nullptr 2018-10-09 10:21:12 +04:00
class.cpp Merge branch 'movement_refactoring' into 'master' 2020-08-27 11:54:30 +00:00
class.hpp Rework container resolution (#3006) 2020-10-13 17:46:32 +02:00
containerstore.cpp Fix remove item regression 2020-10-26 20:13:24 +01:00
containerstore.hpp Fix remove item regression 2020-10-26 20:13:24 +01:00
contentloader.hpp Remove redundant includes 2019-02-23 08:02:12 +04:00
customdata.cpp Native graphics herbalism support (feature #5010) 2019-05-02 23:03:47 +04:00
customdata.hpp Native graphics herbalism support (feature #5010) 2019-05-02 23:03:47 +04:00
datetimemanager.cpp Introduce a separate class to control world date and time 2020-06-05 12:07:32 +04:00
datetimemanager.hpp Introduce a separate class to control world date and time 2020-06-05 12:07:32 +04:00
doorstate.hpp Add enum type for door state 2019-08-25 15:21:00 +02:00
esmloader.cpp Silence -Wreorder warnings, and remove -Wno-reorder. 2015-05-21 22:46:44 -05:00
esmloader.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
esmstore.cpp Save and load container records; fixes #5668 2020-10-29 13:55:24 +01:00
esmstore.hpp Comments to explain the arcane workings of Morrowind 2020-07-30 21:39:04 +02:00
failedaction.cpp Play locked sounds on locked objects instead of actors 2016-08-10 21:31:14 +09:00
failedaction.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
globals.cpp Introduce a separate class to control world date and time 2020-06-05 12:07:32 +04:00
globals.hpp Remove NAME handling from MWWorld::Globals 2015-07-10 00:29:40 +03:00
inventorystore.cpp Merge pull request #3018 from akortunov/emplace 2020-11-01 01:58:56 +03:00
inventorystore.hpp Fix remove item regression 2020-10-26 20:13:24 +01:00
livecellref.cpp Use new logging system for game itself 2018-08-14 23:05:43 +04:00
livecellref.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
localscripts.cpp Use emplace_back instead of push_back 2020-10-18 10:27:35 +04:00
localscripts.hpp Vanilla-compatible activate / onActivate (Fixes #1629) 2016-02-26 13:08:35 +01:00
manualref.cpp Added new method and variable to track float remainders of disintegration effections 2016-12-09 19:48:56 -07:00
manualref.hpp Move manualref code out of header 2015-02-09 15:01:49 +01:00
nullaction.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
player.cpp Add many more godmode checks to harmful magic (bug #5633) 2020-10-09 20:36:51 +03:00
player.hpp Slightly reduce code duplication 2020-01-09 22:17:01 +03:00
projectilemanager.cpp Merge branch 'hitdebug' into 'master' 2020-11-01 10:20:14 +00:00
projectilemanager.hpp Only collect every unique magic bolt sound once (bug #4964) 2019-04-17 19:23:50 +03:00
ptr.cpp Added ConstContainerStoreIterator 2017-02-18 13:47:18 +00:00
ptr.hpp Added ConstContainerStoreIterator 2017-02-18 13:47:18 +00:00
recordcmp.hpp Include cleanup 2019-02-19 18:40:33 +03:00
refdata.cpp Rework container resolution (#3006) 2020-10-13 17:46:32 +02:00
refdata.hpp Rework container resolution (#3006) 2020-10-13 17:46:32 +02:00
scene.cpp Merge pull request #3018 from akortunov/emplace 2020-11-01 01:58:56 +03:00
scene.hpp Get rid of ECLD and dependencies 2020-06-17 13:09:16 +04:00
store.cpp Use emplace_back instead of push_back 2020-10-18 10:27:35 +04:00
store.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
timestamp.cpp Correct an error in the timestamp subtracting logic (Fixes #3105) 2015-12-26 00:26:13 +01:00
timestamp.hpp fixed warning C4099: 2015-03-06 21:36:42 +13:00
weather.cpp Change moon phase to an enum class 2020-10-26 22:16:31 +01:00
weather.hpp remove forward declaration 2020-10-27 19:23:07 +01:00
worldimp.cpp Properly account for interleaved move of actors. 2020-11-14 20:39:16 +01:00
worldimp.hpp Merge branch 'radioactive' into 'master' 2020-10-20 16:56:22 +00:00