Преглед изворни кода

fix doors not opening

bulk updates no good for doors?
Image пре 4 година
родитељ
комит
6eeaee134c
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      EQ2/source/WorldServer/Widget.cpp

+ 4 - 0
EQ2/source/WorldServer/Widget.cpp

@@ -276,6 +276,8 @@ void Widget::OpenDoor(){
 	is_open = true;
 	if(open_duration > 0)
 		GetZone()->AddWidgetTimer(this, open_duration);
+
+	GetZone()->SendSpawnChanges(this);
 }
 
 void Widget::CloseDoor(){
@@ -309,6 +311,8 @@ void Widget::CloseDoor(){
 	}
 
 	is_open = false;
+
+	GetZone()->SendSpawnChanges(this);
 }
 
 void Widget::ProcessUse(){