Cockatrice/libcockatrice_network/libcockatrice/network/server
DawnFire42 80946b2fd4 Unify counter clamp arithmetic into shared addClamped() helper
Rename MAX_COUNTERS_ON_CARD to MAX_COUNTER_VALUE

  Add addClamped() in trice_limits.h, which uses a 64-bit intermediate so
  the addition cannot overflow int. Both Server_Card and Server_Counter use it.

  Add optional [minValue, maxValue] bounds to Server_Counter; setCount()
  and incrementCount() both clamp. Defaults are unbounded, so existing
  callers are unaffected.
2026-06-19 12:27:05 -04:00
..
local Standardize Doxygen documentation (#6885) 2026-05-21 22:58:07 +02:00
remote Unify counter clamp arithmetic into shared addClamped() helper 2026-06-19 12:27:05 -04:00
CMakeLists.txt Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00