From 68b3252d24130d7be9e5d822e2000aa1690a1321 Mon Sep 17 00:00:00 2001 From: ephphatha Date: Mon, 24 Jan 2022 22:27:37 +1100 Subject: [PATCH] Call dropitem when spawning a quest reward in a network game This allows the item to appear in the delta sync when a new player joins the game, but does not cause the item to drop for other players on the same level at the time the action occurs due to differences in the way this message is handled. --- Source/items.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/items.cpp b/Source/items.cpp index 72166ad4e..0a75d8409 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -3552,6 +3552,10 @@ void SpawnRewardItem(int itemid, Point position) item._iSelFlag = 2; item._iPostDraw = true; item._iIdentified = true; + + if (gbIsMultiplayer) { + NetSendCmdPItem(false, CMD_DROPITEM, item.position, item); + } } void SpawnMapOfDoom(Point position)