Skip to content

Commit 0e31a0b

Browse files
The upper limit is removed when the value is less than 1
1 parent 3c5b3a1 commit 0e31a0b

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

docs/User-Interface.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ HealthBar.Permanent.PipScale=false ; boolean
7575
### Customize the step limit of the credits indicator
7676

7777
- In vanilla, the Credits Indicator in the sidebar increases by at most 143 points per frame, and now you can customize this limit.
78-
- If set to a value less than or equal to 0, it will continue to execute the vanilla behavior (limited to 143).
78+
- If set to a value less than or equal to 0, the upper limit will be removed.
7979

8080
In `uimd.ini`:
8181
```ini

src/Misc/Hooks.UI.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,18 @@ DEFINE_HOOK(0x641EE0, PreviewClass_ReadPreview, 0x6)
7777

7878
DEFINE_HOOK(0x4A2729, CreditClass_AI_CreditsStepClamp, 0x5)
7979
{
80+
enum { Continue = 0x4A2735 };
81+
8082
int maxStep = Phobos::UI::CreditsIndicator_MaxStep;
8183
if (maxStep < 1)
82-
return 0;
84+
return Continue;
8385

8486
int current = R->EAX();
8587
if (current > maxStep)
8688
current = maxStep;
8789
R->EAX(current);
8890

89-
return 0x4A2735;
91+
return Continue;
9092
}
9193

9294
DEFINE_HOOK(0x4A25E0, CreditsClass_GraphicLogic_HarvesterCounter, 0x7)

0 commit comments

Comments
 (0)