Beco: Difference between revisions
→Operations: collapse original code by default
imported>Leoetlino (further simplifications) |
imported>Leoetlino (→Operations: collapse original code by default) |
||
Line 47: | Line 47: | ||
For the reference, here is the official, mostly unreversed function<ref>0x7100E41C40 in Switch 1.5.0</ref> that implements the aforementioned algorithm: | For the reference, here is the official, mostly unreversed function<ref>0x7100E41C40 in Switch 1.5.0</ref> that implements the aforementioned algorithm: | ||
<div class="mw-collapsible mw-collapsed"> | |||
<syntaxhighlight lang="c++"> | <syntaxhighlight lang="c++"> | ||
unsigned int __fastcall eco::getCurrentAreaNum(float posX, float posZ, Ecosystem *ecosystem, EcoMapInfo *info) | unsigned int __fastcall eco::getCurrentAreaNum(float posX, float posZ, Ecosystem *ecosystem, EcoMapInfo *info) | ||
Line 129: | Line 130: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</div> | |||
A cleaner version of this algorithm is given below: | A cleaner version of this algorithm is given below: |