MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / RotateTop4Words

Method RotateTop4Words

src/newgrf_text.cpp:725–735  ·  view source on GitHub ↗

Rotate the top four words down: W1, W2, W3, W4 -> W4, W1, W2, W3 */

Source from the content-addressed store, hash-verified

723
724 /** Rotate the top four words down: W1, W2, W3, W4 -> W4, W1, W2, W3 */
725 void RotateTop4Words()
726 {
727 auto w1 = this->PopUnsignedWord();
728 auto w2 = this->PopUnsignedWord();
729 auto w3 = this->PopUnsignedWord();
730 auto w4 = this->PopUnsignedWord();
731 this->PushWord(w3);
732 this->PushWord(w2);
733 this->PushWord(w1);
734 this->PushWord(w4);
735 }
736
737 void PushByte(uint8_t b)
738 {

Callers 1

Calls 2

PopUnsignedWordMethod · 0.95
PushWordMethod · 0.95

Tested by

no test coverage detected