Explorar o código

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

On official server the instance timer starts when the instance is created.
Atemo %!s(int64=6) %!d(string=hai) anos
pai
achega
d8bcc912d8
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;
 }