Forráskód Böngészése

Fix for issue #3412 'Global instance timer' (#3414)

On official server the instance timer starts when the instance is created.
Atemo 6 éve
szülő
commit
d8bcc912d8
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      src/map/instance.cpp

+ 3 - 0
src/map/instance.cpp

@@ -457,6 +457,9 @@ int instance_create(int owner_id, const char *name, enum instance_mode mode) {
 
 	ShowInfo("[Instance] Created: %s (%hu).\n", name, i);
 
+	// Start the instance timer on instance creation
+	instance_startkeeptimer(&instance_data[i], i);
+
 	return i;
 }