Decoded: OpenTTD (2003) v1.8 (2018) Source file: geometry_func.cpp Line-by-line code walkthrough by MaiZure geometry_func.cpp defines maxdim Original code: https://github.com/MaiZure/OpenTTD-1.8/blob/master/src/core/geometry_func.cpp 1 COMMENT (*) 2 BLANK (-) 3 * 4 * 5 * 6 * 7 * 8 * 9 - 10 * 11 - 12 Includes the OpenTTD platform-dependent header 13 Includes the OpenTTD geometry function header 14 Includes the OpenTTD math function header 15 - 16 Includes the OpenTTD safeguards 17 - 18 * 19 * 20 * 21 * 22 * 23 * 24 Defines maxdim with two arguments: two 2D spaces 25 BLOCK START - maxdim, returns the discrete convex hull of the two spaces 26 Declares a dimension (width and height pair) 27 Initializes width to the larger of the two input dimensions 28 Initializes height to the larger of the two input dimensions 29 Returns the computed dimension 30 BLOCK END - maxdim