MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / round

Function round

source/utils/Helper.cpp:87–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 }
86
87 int round(double d)
88 {
89 return static_cast<int>(d + 0.5);
90 }
91
92 int round(float f)
93 {

Callers 15

computeMoodMethod · 0.85
computeMoodMethod · 0.85
useRoomMethod · 0.85
useRoomMethod · 0.85
useRoomMethod · 0.85
handleFirstUpkeepMethod · 0.85
updateMinimapCameraMethod · 0.85
MiniMapDrawnFullMethod · 0.85
computeDestinationMethod · 0.85
checkWalkPathValidMethod · 0.85
setJobCooldownMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected