Skip to content

Commit

Permalink
glwidgets, guipanel: Expand the weapon-measuring ruler tool to show u…
Browse files Browse the repository at this point in the history
…p to 9 meters instead of 3 by default. By using the numeric input one can enlarge it and measure up to 99 meters. Let me know if that is enough.
  • Loading branch information
Swyter committed May 18, 2024
1 parent 0f2ab86 commit 53c5c6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion glwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ void GLWidget::renderRuler(){
glDisable(GL_LIGHTING);
float h=0.4f;
glBegin(GL_LINES);
for (int i=1; i<=300; i+=1){
for (int i=1; i<=max(900, rulerLenght); i+=1){
int lvl=0;
if (i==rulerLenght) continue;
if (i%5==0) lvl =1;
Expand Down
2 changes: 1 addition & 1 deletion guipanel.ui
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@
<string>Current weapon reach.</string>
</property>
<property name="maximum">
<number>511</number>
<number>9900</number>
</property>
<property name="value">
<number>100</number>
Expand Down

0 comments on commit 53c5c6c

Please sign in to comment.