Browse Source

Add servername to title window.

devn00b 2 years ago
parent
commit
519119d622
1 changed files with 2 additions and 1 deletions
  1. 2 1
      EQ2/source/WorldServer/net.cpp

+ 2 - 1
EQ2/source/WorldServer/net.cpp

@@ -894,7 +894,8 @@ void UpdateWindowTitle(char* iNewTitle) {
 		snprintf(tmp, sizeof(tmp), "World: %s", iNewTitle);
 	}
 	else {
-		snprintf(tmp, sizeof(tmp), "%s, Version: %s: %i Clients(s) in %i Zones(s)", EQ2EMU_MODULE, CURRENT_VERSION, numclients, numzones);
+		string servername = net.GetWorldName();
+		snprintf(tmp, sizeof(tmp), "%s (%s), Version: %s: %i Clients(s) in %i Zones(s)", EQ2EMU_MODULE, servername.c_str(), CURRENT_VERSION, numclients, numzones);
 	}
 	// Zero terminate ([max - 1] = 0) the string to prevent a warning 
 	tmp[499] = 0;