Skip to content

Commit 18825b4

Browse files
committed
DrawDistance: use actual loaded stage num for exclusion lookup
fixed crash when restarting stage with overlay active, add reload button
1 parent f46d000 commit 18825b4

File tree

3 files changed

+173
-135
lines changed

3 files changed

+173
-135
lines changed

OutRun2006Tweaks.lods.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,10 @@
77
# AMAZON
88
[Stage 22]
99
# Jungle -> Skyscrapers bushes during bunki
10+
# (TODO: need to recheck this after the stage num fix...)
1011
0x5 = 0xBB
12+
13+
# PALM BEACH (T)
14+
[Stage 60]
15+
# Bad polygon when entering from bunki
16+
0x1 = 0x6

src/game_addrs.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ namespace Game
5050
inline int* app_time = nullptr; // used by SetTweeningTable etc
5151
inline int* sprani_num_ticks = nullptr; // number of game ticks being ran in the current frame (can be 0 if above 60FPS)
5252

53+
inline int* stg_stage_num = nullptr;
54+
5355
inline D3DXVECTOR2* screen_scale = nullptr;
5456

5557
// ini cfg
@@ -154,6 +156,8 @@ namespace Game
154156
app_time = Module::exe_ptr<int>(0x49EDB8);
155157
sprani_num_ticks = Module::exe_ptr<int>(0x380278);
156158

159+
stg_stage_num = Module::exe_ptr<int>(0x3D2E8C);
160+
157161
screen_scale = Module::exe_ptr<D3DXVECTOR2>(0x340C94);
158162

159163
screen_resolution = Module::exe_ptr<D3DXVECTOR2>(0x340C8C);

0 commit comments

Comments
 (0)