Browse Source

widgets omitted from bulk updates, sent individually

Image 4 years ago
parent
commit
26decf5a1f
2 changed files with 2 additions and 1 deletions
  1. 1 0
      EQ2/source/WorldServer/WorldDatabase.cpp
  2. 1 1
      EQ2/source/WorldServer/client.cpp

+ 1 - 0
EQ2/source/WorldServer/WorldDatabase.cpp

@@ -1157,6 +1157,7 @@ void WorldDatabase::LoadWidgets(ZoneServer* zone){
 			widget->SetWidgetType(WIDGET_TYPE_DOOR);
 		else if (strncasecmp(row[15], "Lift", 4) == 0)
 			widget->SetWidgetType(WIDGET_TYPE_LIFT);
+
 		widget->SetOpenHeading(atof(row[16]));
 		widget->SetOpenY(atof(row[17]));
 		widget->SetActionSpawnID(atoul(row[18]));

+ 1 - 1
EQ2/source/WorldServer/client.cpp

@@ -8286,7 +8286,7 @@ void Client::SendSpawnChanges(set<Spawn*>& spawns) {
 		if (index == 0 || !GetPlayer()->WasSentSpawn(spawn->GetID()) || GetPlayer()->NeedsSpawnResent(spawn) || GetPlayer()->GetDistance(spawn) >= SEND_SPAWN_DISTANCE)
 			continue;
 
-		if (spawn->info_changed || spawn->vis_changed)
+		if (spawn->IsWidget() || spawn->info_changed || spawn->vis_changed)
 		{
 			GetPlayer()->GetZone()->SendSpawnChanges(spawn->GetID(), this, false, false);
 			continue;