MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / dayTimeTohm

Method dayTimeTohm

src/engine/GameClock.cpp:108–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void GameClock::dayTimeTohm(double timeOfDay, int& hours, int& minutes)
109{
110 hours = static_cast<int>(timeOfDay * 24);
111 minutes = static_cast<int>((timeOfDay * 24 - hours) * 60);
112}
113
114void GameClock::resetNewGame()
115{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected