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

Function byte_inc_sat

src/station_cmd.cpp:3939–3943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3937}
3938
3939static inline void byte_inc_sat(uint8_t *p)
3940{
3941 uint8_t b = *p + 1;
3942 if (b != 0) *p = b;
3943}
3944
3945/**
3946 * Truncate the cargo by a specific amount.

Callers 1

UpdateStationRatingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected