spawn move close_heading needed to also update spawn_location_placement

the spawn_location_placement heading must match close heading
This commit is contained in:
Image 2020-03-27 08:57:39 -04:00
parent 38389b1d3a
commit 0091eedd0a

View file

@ -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.");