about summary refs log tree commit diff
path: root/src/game/client/components
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-06-09 22:44:22 +0200
committeroy <Tom_Adams@web.de>2011-06-09 22:44:22 +0200
commit9845d757ef2a11f4fc37f0f438bca9adb47cacaf (patch)
tree906c87e8e812d495f34d4b5743530da20804c7b6 /src/game/client/components
parent348806d993598a26025fc90dbfa022f495232420 (diff)
downloadzcatch-9845d757ef2a11f4fc37f0f438bca9adb47cacaf.tar.gz
zcatch-9845d757ef2a11f4fc37f0f438bca9adb47cacaf.zip
removed file extension from the demo name in the demo player
Diffstat (limited to 'src/game/client/components')
-rw-r--r--src/game/client/components/menus_demo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/client/components/menus_demo.cpp b/src/game/client/components/menus_demo.cpp
index 1539f3a6..f3a75f0c 100644
--- a/src/game/client/components/menus_demo.cpp
+++ b/src/game/client/components/menus_demo.cpp
@@ -200,8 +200,10 @@ void CMenus::RenderDemoPlayer(CUIRect MainView)
 			Client()->Disconnect();
 
 		// demo name
+		char aDemoName[64] = {0};
+		DemoPlayer()->GetDemoName(aDemoName, sizeof(aDemoName));
 		char aBuf[128];
-		str_format(aBuf, sizeof(aBuf), Localize("Demofile: %s"), DemoPlayer()->GetDemoName());
+		str_format(aBuf, sizeof(aBuf), Localize("Demofile: %s"), aDemoName);
 		CTextCursor Cursor;
 		TextRender()->SetCursor(&Cursor, NameBar.x, NameBar.y, Button.h*0.5f, TEXTFLAG_RENDER|TEXTFLAG_STOP_AT_END);
 		Cursor.m_LineWidth = MainView.w;