Skip to content

Commit

Permalink
Show runes for a bit after loading (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Oct 7, 2023
1 parent eaa830d commit a11ae7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Quake/cl_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ void CL_SignonReply (void)
break;

case 4:
cl.spawntime = cl.mtime[0];
SCR_EndLoadingPlaque (); // allow normal screen updates
break;
}
Expand Down
1 change: 1 addition & 0 deletions Quake/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ typedef struct


float last_received_message; // (realtime) for net trouble icon
float spawntime; // time when signon 4 was received

//
// information that is static for the entire time connected to a server
Expand Down
3 changes: 2 additions & 1 deletion Quake/sbar.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@ static void Sbar_DrawSigils (void)
for (i = 0; i < 4; i++)
if (cl.items & (1<<(28+i)))
t = q_max (t, cl.item_gettime[28+i]);
t = q_max (t, cl.spawntime);

if (!sb_showscores && (cl.time - t > 3.f || scr_viewsize.value >= 120))
return;
Expand All @@ -1028,7 +1029,7 @@ static void Sbar_DrawSigils (void)
{
if (cl.items & (1<<(28+i)))
{
t = (cl.time - cl.item_gettime[28+i]);
t = (cl.time - q_max (cl.item_gettime[28+i], cl.spawntime));
t = q_max (t, 0.f);
if (t >= 1.f)
t = 1.f;
Expand Down

0 comments on commit a11ae7a

Please sign in to comment.