Set the default compass scale to 0.5 for the base game

This commit is contained in:
smallmodel 2024-11-19 19:44:55 +01:00
parent 05e14f6364
commit d83374d38c
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -3832,7 +3832,13 @@ void UI_ResolutionChange(void)
{
UIRect2D frame;
ui_compass_scale = Cvar_Get("ui_compass_scale", "0.75", CVAR_ARCHIVE | CVAR_LATCH);
if (com_target_game->integer >= TG_MOHTA) {
ui_compass_scale = Cvar_Get("ui_compass_scale", "0.75", CVAR_ARCHIVE | CVAR_LATCH);
} else {
// Older version doesn't have an adjustable compass, so assume 0.5 by default
ui_compass_scale = Cvar_Get("ui_compass_scale", "0.5", CVAR_ARCHIVE | CVAR_LATCH);
}
CL_FillUIImports();
CL_FillUIDef();
@ -5446,7 +5452,6 @@ UI_EndLoadResource
void UI_EndLoadResource(void)
{
clock_t time;
int i;
time = clock() - (((clock_t)startCountHigh << 32) | startCountLow) + (((clock_t)loadCountHigh << 32) | loadCountLow);