forked from kyx0r/FA-Binary-Patches
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "../define.h" | ||
|
||
asm(R"( | ||
#Moho::CIntelPosHandle::UpdatePos at 0x76F1E0 | ||
# Intel handles update the intel raster grid when one of the following two | ||
# conditions are met: | ||
# * The unit has moved more than a certain ratio of the intel radius beyond | ||
# the last update position | ||
radius_movement_ratio = 0xE4F6EC # 0.25 from 0.33 | ||
# * a certain number of ticks have passed since the last update | ||
tick_update_interval = 5 # from 30 | ||
# We'll leave this alone for now. | ||
#.section h0; .set h0,0x76F21A #Moho::CIntelPosHandle::UpdatePos+0x3A | ||
# fmul dword ptr [radius_movement_ratio] | ||
.section h1; .set h1,0x76F258 #Moho::CIntelPosHandle::UpdatePos+0x78 | ||
cmp edx, tick_update_interval | ||
)"); |