print demo version on "outdated" demos
idk if this is fine lel
This commit is contained in:
1 parent
e8c6dca8c1
commit
9c25d99156
3 files changed
+5
-1
No files matched your search
@@ -6653,6 +6653,9 @@ void G_LoadDemoInfo(menudemo_t *pdemo)
|
||||
subversion = READUINT8(info_p);
|
||||
pdemoversion = READUINT16(info_p);
|
||||
|
||||
memset(pdemo->version, 0, sizeof(pdemo->version));
|
||||
sprintf(pdemo->version, "v%d.%d", version, subversion);
|
||||
|
||||
switch(pdemoversion)
|
||||
{
|
||||
case DEMOVERSION: // latest always supported
|
||||
|
||||
@@ -84,6 +84,7 @@ typedef struct menudemo_s {
|
||||
|
||||
char title[65]; // Null-terminated for string prints
|
||||
char date[11]; // date when replay was recorded
|
||||
char version[6]; // combined version and subversion
|
||||
UINT16 map;
|
||||
UINT8 addonstatus; // What do we need to do addon-wise to play this demo?
|
||||
UINT8 gametype;
|
||||
|
||||
+1
-1
@@ -7203,7 +7203,7 @@ static void DrawReplayHutReplayInfo(void)
|
||||
break; // Can't think of anything to draw here right now
|
||||
|
||||
case MD_OUTDATED:
|
||||
V_DrawThinString(17, 64, V_SNAPTOTOP|V_ALLOWLOWERCASE|V_TRANSLUCENT|highlightflags, "Recorded on an outdated version.");
|
||||
V_DrawThinString(17, 64, V_SNAPTOTOP|V_ALLOWLOWERCASE|V_TRANSLUCENT|highlightflags, va("Recorded on an outdated version. %s", demolist[dir_on[menudepthleft]].version));
|
||||
/*fallthru*/
|
||||
default:
|
||||
// Draw level stuff
|
||||
|
||||
Reference in new issue
Block a user