浏览代码

spawn move close_heading needed to also update spawn_location_placement

the spawn_location_placement heading must match close heading
Image 4 年之前
父节点
当前提交
0091eedd0a
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      EQ2/source/WorldServer/client.cpp

+ 6 - 0
EQ2/source/WorldServer/client.cpp

@@ -1168,6 +1168,12 @@ bool Client::HandlePacket(EQApplicationPacket *app) {
 						_snprintf(query, 256, "closed_heading=%f,include_heading=1", newHeading);
 						if (database.UpdateSpawnWidget(widget->GetWidgetID(), query))
 							SimpleMessage(CHANNEL_COLOR_YELLOW, "Successfully saved widget close heading information.");
+
+						if (spawn->GetSpawnLocationID())
+						{
+							Query query;
+							query.RunQuery2(Q_INSERT, "update spawn_location_placement set heading = %f where id = %u", newHeading, spawn->GetSpawnLocationID());
+						}
 					}
 					else
 						SimpleMessage(CHANNEL_COLOR_YELLOW, "Spawn is not widget, unable to set close heading information.");