Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenTTD/OpenTTD
/ AssignBit
Function
AssignBit
src/core/bitmath_func.hpp:176–179 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
174
*/
175
template <typename T>
176
constexpr T AssignBit(T &x, const uint8_t y, bool value)
177
{
178
return SB<T>(x, y, 1, value ? 1 : 0);
179
}
180
181
/**
182
* Search the first set bit in a value.
Callers
15
SetWaitTimetabled
Method · 0.85
SetTravelTimetabled
Method · 0.85
SetStationTileBlocked
Function · 0.85
SetStationTileHaveWires
Function · 0.85
SetStationTileHavePylons
Function · 0.85
SetRailStationReservation
Function · 0.85
SetCrossingReservation
Function · 0.85
SetCrossingBarred
Function · 0.85
SetTunnelBridgeReservation
Function · 0.85
BuildGuiGroupList
Function · 0.85
Restore
Method · 0.85
SetDockingTile
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected