Offroad glitch: Difference between revisions
Create initial page |
m C++ syntax highlighting |
||
Line 14: | Line 14: | ||
== Relevant code == | == Relevant code == | ||
The following code is written in C++, and has been edited to only include relevant parts. Irrelevant code will be marked with <code>// ...</code>. | The following code is written in C++, and has been edited to only include relevant parts. Irrelevant code will be marked with <code>// ...</code>.<syntaxhighlight lang="cpp" line="1"> | ||
< | |||
// This is run when the game recognizes we're interacting with a jump pad | // This is run when the game recognizes we're interacting with a jump pad | ||
void Kart::KartMove::tryStartJumpPad(int variant) { | void Kart::KartMove::tryStartJumpPad(int variant) { | ||
Line 34: | Line 33: | ||
// ... | // ... | ||
} | } | ||
</ | </syntaxhighlight><syntaxhighlight lang="c++" line="1"> | ||
< | |||
// This is run once every frame generically | // This is run once every frame generically | ||
void Kart::KartMove::tryEndJumpPad() { | void Kart::KartMove::tryEndJumpPad() { | ||
Line 61: | Line 59: | ||
} | } | ||
} | } | ||
</ | </syntaxhighlight>The following Gecko code fixes this glitch. | ||
The following Gecko code fixes this glitch. | |||
<pre> | <pre> | ||
Fix Offroad Glitch (PAL) [vabold] | Fix Offroad Glitch (PAL) [vabold] |