Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Add mapname to .dem file
Browse files Browse the repository at this point in the history
  • Loading branch information
marqdevx committed Mar 1, 2024
1 parent 51aea6d commit 4d4ccd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adminsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1263,8 +1263,8 @@ CON_COMMAND_CHAT(record, "Record demo")
std::localtime(&result);
std::strftime(actualTime, sizeof(actualTime), "%d%B_%H-%M", std::localtime(&result));

V_snprintf(actualMap,MAX_PATH, "unknownMap");
if(level_name != "")V_snprintf(actualMap,MAX_PATH, "%s", level_name);
V_snprintf(actualMap,MAX_PATH, "%s", gpGlobals->mapname);
if((std::string)actualMap == "") V_snprintf(actualMap,MAX_PATH, "unknownMap");
V_snprintf(demoName, MAX_PATH, "%s_%s", actualTime, actualMap);

V_snprintf(buf, MAX_PATH, "tv_record gotv/%s", demoName);
Expand Down

0 comments on commit 4d4ccd1

Please sign in to comment.