openmw-tes3coop/apps/openmw
David Cernat f481c85e07 [Client] Use ADD before REMOVE for PlayerInventory in repair/recharge
Previously, when recharging or repairing an item, the client sent a PlayerInventory packet to the server with the old version of the item that was supposed to be removed and then it sent a PlayerInventory packet with the new version of the item that was supposed to be added.

Unfortunately, the current CoreScripts make it so custom items using generated IDs have their records deleted when they are completely removed from the world, however briefly, even if they are added back immediately afterwards. In practice, this meant that – before this commit – recharging or repairing a custom item led to its removal from the player inventory stored on the server, followed by the deletion of its record, followed by its readdition to the inventory (but with the record staying deleted). Logging out and logging back in immediately prevented the player from receiving the item anymore because of its now non-existent record.
2019-01-11 13:08:26 +02:00
..
mwbase Merge pull request #469 from davidcernat/master while resolving conflicts 2018-08-20 14:08:44 +03:00
mwclass [Client] Set actor killer correctly for spells that do damage over time 2018-12-30 07:40:11 +02:00
mwdialogue Merge pull request #469 from davidcernat/master while resolving conflicts 2018-08-20 14:08:44 +03:00
mwgui [Client] Use ADD before REMOVE for PlayerInventory in repair/recharge 2019-01-11 13:08:26 +02:00
mwinput [Client] Disallow opening inventory menu when not logged in 2018-12-01 10:51:33 -06:00
mwmechanics [Client] Use ADD before REMOVE for PlayerInventory in repair/recharge 2019-01-11 13:08:26 +02:00
mwmp [Client] Add LocalPlayer::sendItemChange() variant with mwmp::Item arg 2019-01-11 12:54:47 +02:00
mwphysics Merge pull request #469 from davidcernat/master while resolving conflicts 2018-08-20 14:08:44 +03:00
mwrender [General] Always use correct ranged weapon & ammo for ranged attack sync 2018-09-23 02:30:31 +03:00
mwscript [Client] Send object packets when scripts use PlaceItem/PlaceItemCell 2018-12-05 01:56:27 +02:00
mwsound Replace 0 sound range values separately 2018-08-02 12:40:53 +03:00
mwstate Add resumeGame method 2018-07-26 20:35:34 +03:00
mwworld [Client] Use informative error message for RefData::setCount() issue 2019-01-11 08:16:29 +02:00
android_commandLine.cpp
android_commandLine.h
android_main.c android: Update for sdl 2.0.8 2018-03-30 12:44:38 -04:00
CMakeLists.txt [General] Implement PlayerItemUse packet 2018-08-09 18:25:20 +03:00
doc.hpp Fixed more spelling mistakes 2016-12-15 13:09:40 +01:00
engine.cpp Merge pull request #469 from davidcernat/master while resolving conflicts 2018-08-20 14:08:44 +03:00
engine.hpp Merge branch 'master' into screenshot360 2018-02-25 11:25:19 +01:00
main.cpp Merge pull request #469 from davidcernat/master while resolving conflicts 2018-08-20 14:08:44 +03:00