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

Function UnpackVersion4Order

src/saveload/order_sl.cpp:85–88  ·  view source on GitHub ↗

* Unpacks a order from savegames with version 4 and lower * @param packed packed order * @return unpacked order */

Source from the content-addressed store, hash-verified

83 * @return unpacked order
84 */
85static Order UnpackVersion4Order(uint16_t packed)
86{
87 return Order(GB(packed, 0, 4), GB(packed, 4, 4), GB(packed, 8, 8));
88}
89
90/**
91 * Unpacks a order from savegames made with TTD(Patch)

Callers 2

UnpackOldOrderFunction · 0.85
LoadMethod · 0.85

Calls 2

GBFunction · 0.85
OrderClass · 0.50

Tested by

no test coverage detected