Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/pakQ3VR/ui/ingame_system.menu
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ itemDef {
type ITEM_TYPE_MULTI
text "Geometric Detail:"
cvar "r_lodbias"
cvarFloatList { "High" -1 "Medium" 1 "Low" 2 }
cvarFloatList { "High" -2 "Medium" -1 "Low" 0 }
rect 0 190 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 133
Expand Down
2 changes: 1 addition & 1 deletion assets/pakQ3VR/ui/system.menu
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ itemDef {
type ITEM_TYPE_MULTI
text "Geometric Detail:"
cvar "r_lodbias"
cvarFloatList { "High" -1 "Medium" 1 "Low" 2 }
cvarFloatList { "High" -2 "Medium" -1 "Low" 0 }
rect 99 217 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 128
Expand Down
10 changes: 5 additions & 5 deletions code/q3_ui/ui_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,12 +665,12 @@ static void GraphicsOptions_SetMenuItems( void )
}

int lodbias = trap_Cvar_VariableValue( "r_lodBias" );
if (lodbias == -1) {
s_graphicsoptions.geometry.curvalue = 2;
} else if (lodbias == 1) {
s_graphicsoptions.geometry.curvalue = 1;
if (lodbias <= -2) {
s_graphicsoptions.geometry.curvalue = 2; // High
} else if (lodbias == -1) {
s_graphicsoptions.geometry.curvalue = 1; // Medium
} else {
s_graphicsoptions.geometry.curvalue = 0;
s_graphicsoptions.geometry.curvalue = 0; // Low
}

#if 0
Expand Down
12 changes: 6 additions & 6 deletions code/ui/ui_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3234,14 +3234,14 @@ static void UI_Update(const char *name) {
}
} else if (Q_stricmp(name, "r_lodbias") == 0) {
switch (val) {
case 0:
trap_Cvar_SetValue( "r_subdivisions", 1 );
case -2:
trap_Cvar_SetValue( "r_subdivisions", 1 ); // High
break;
case 1:
trap_Cvar_SetValue( "r_subdivisions", 2 );
case -1:
trap_Cvar_SetValue( "r_subdivisions", 2 ); // Medium
break;
case 2:
trap_Cvar_SetValue( "r_subdivisions", 4 );
case 0:
trap_Cvar_SetValue( "r_subdivisions", 4 ); // Low
break;
}
} else if (Q_stricmp(name, "ui_glCustom") == 0) {
Expand Down