mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-04 00:15:53 +02:00
81e6207df0
Added set of functions that perform integer division with different rounding modes: - divideAndCeil - rounds up to next integer - divideAndRound - rounds to nearest integer - divideAndFloor - rounds to previous integer (equivalent to default division) Intended for use in library, where usage of floating point might lead to desync in multiplayer games. Replaced some cases that I knew of, including recent handicap PR |
||
---|---|---|
.. | ||
AccessibilityInfo.cpp | ||
AccessibilityInfo.h | ||
AutocombatPreferences.h | ||
BattleAction.cpp | ||
BattleAction.h | ||
BattleAttackInfo.cpp | ||
BattleAttackInfo.h | ||
BattleHex.cpp | ||
BattleHex.h | ||
BattleInfo.cpp | ||
BattleInfo.h | ||
BattleProxy.cpp | ||
BattleProxy.h | ||
BattleStateInfoForRetreat.cpp | ||
BattleStateInfoForRetreat.h | ||
CBattleInfoCallback.cpp | ||
CBattleInfoCallback.h | ||
CBattleInfoEssentials.cpp | ||
CBattleInfoEssentials.h | ||
CObstacleInstance.cpp | ||
CObstacleInstance.h | ||
CPlayerBattleCallback.cpp | ||
CPlayerBattleCallback.h | ||
CUnitState.cpp | ||
CUnitState.h | ||
DamageCalculator.cpp | ||
DamageCalculator.h | ||
Destination.cpp | ||
Destination.h | ||
IBattleInfoCallback.h | ||
IBattleState.cpp | ||
IBattleState.h | ||
IUnitInfo.h | ||
PossiblePlayerBattleAction.h | ||
ReachabilityInfo.cpp | ||
ReachabilityInfo.h | ||
SideInBattle.cpp | ||
SideInBattle.h | ||
SiegeInfo.cpp | ||
SiegeInfo.h | ||
Unit.cpp | ||
Unit.h |