@@ -2186,29 +2186,32 @@ static void WI_drawStats(void)
2186
2186
V_DrawPatch (SP_STATSX , SP_STATSY + 2 * lh , sp_secret );
2187
2187
WI_drawPercent (SCREENWIDTH - SP_STATSX , SP_STATSY + 2 * lh , cnt_secret [0 ]);
2188
2188
2189
+ const boolean draw_partime = (W_IsIWADLump (maplump ) || deh_pars || um_pars ) &&
2190
+ (wbs -> epsd < 3 || um_pars );
2191
+ // [FG] choose x-position depending on width of time string
2192
+ const boolean wide_total = (wbs -> totaltimes / TICRATE > 61 * 59 ) ||
2193
+ (SP_TIMEX + SHORT (total -> width ) >= SCREENWIDTH /4 );
2194
+ const boolean wide_time = (wide_total && !draw_partime );
2195
+
2189
2196
V_DrawPatch (SP_TIMEX , SP_TIMEY , witime );
2190
- WI_drawTime (SCREENWIDTH /2 - SP_TIMEX , SP_TIMEY , cnt_time , true);
2197
+ WI_drawTime ((wide_time ? SCREENWIDTH : SCREENWIDTH /2 ) - SP_TIMEX ,
2198
+ SP_TIMEY , cnt_time , true);
2191
2199
2192
2200
// Ty 04/11/98: redid logic: should skip only if with pwad but
2193
2201
// without deh patch
2194
2202
// killough 2/22/98: skip drawing par times on pwads
2195
2203
// Ty 03/17/98: unless pars changed with deh patch
2196
2204
2197
- if (W_IsIWADLump (maplump ) || deh_pars || um_pars )
2198
- if (wbs -> epsd < 3 || um_pars )
2199
- {
2200
- V_DrawPatch (SCREENWIDTH /2 + SP_TIMEX , SP_TIMEY , par );
2201
- WI_drawTime (SCREENWIDTH - SP_TIMEX , SP_TIMEY , cnt_par , true);
2202
- }
2203
-
2204
- // [FG] draw total time alongside level time and par time
2205
+ if (draw_partime )
2205
2206
{
2206
- const boolean wide = (wbs -> totaltimes / TICRATE > 61 * 59 ) || (SP_TIMEX + SHORT (total -> width ) >= SCREENWIDTH /4 );
2207
-
2208
- V_DrawPatch (SP_TIMEX , SP_TIMEY + 16 , total );
2209
- // [FG] choose x-position depending on width of time string
2210
- WI_drawTime ((wide ? SCREENWIDTH : SCREENWIDTH /2 ) - SP_TIMEX , SP_TIMEY + 16 , cnt_total_time , false);
2207
+ V_DrawPatch (SCREENWIDTH /2 + SP_TIMEX , SP_TIMEY , par );
2208
+ WI_drawTime (SCREENWIDTH - SP_TIMEX , SP_TIMEY , cnt_par , true);
2211
2209
}
2210
+
2211
+ // [FG] draw total time alongside level time and par time
2212
+ V_DrawPatch (SP_TIMEX , SP_TIMEY + 16 , total );
2213
+ WI_drawTime ((wide_total ? SCREENWIDTH : SCREENWIDTH /2 ) - SP_TIMEX ,
2214
+ SP_TIMEY + 16 , cnt_total_time , false);
2212
2215
}
2213
2216
2214
2217
// ====================================================================
0 commit comments