浏览代码

Add servername to title window.

devn00b 2 年之前
父节点
当前提交
519119d622
共有 1 个文件被更改,包括 2 次插入1 次删除
  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;