mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Set the default compass scale to 0.5 for the base game
This commit is contained in:
parent
05e14f6364
commit
d83374d38c
1 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue