Skip to content

Commit

Permalink
Remove transport load factor (#79)
Browse files Browse the repository at this point in the history
* Remove transport load factor at initialization

* add to readme

* comment function name
  • Loading branch information
Hdt80bro authored Jul 20, 2024
1 parent 9cb7b29 commit 010a5e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ These don't matter except for other assembly patches
- hooks/aiinitattack.cpp

## Bugs
- Remove lingering transport load factor calcuation at aircraft initialization
- hooks/RemoveTransportLoadFactor.cpp
- Fix `RolloverInfo` returning integer economy values.
- hooks/GetRolloverInfoFix.cpp
- Fix [problem described here](https://www.lua.org/bugs.html#5.0.2-5)
Expand Down
6 changes: 6 additions & 0 deletions hooks/RemoveTransportLoadFactor.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
asm(
// Moho::Unit::CalcTransportLoadFactor
".section h0; .set h0,0x6A8B30;"
"fld1;"
"ret;"
);

0 comments on commit 010a5e5

Please sign in to comment.