mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 00:23:55 -07:00
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. |
||
|---|---|---|
| .. | ||
| card_ref.h | ||
| color.h | ||
| days_years_between.h | ||
| expression.cpp | ||
| expression.h | ||
| levenshtein.cpp | ||
| levenshtein.h | ||
| macros.h | ||
| passwordhasher.cpp | ||
| passwordhasher.h | ||
| peglib.h | ||
| qt_utils.h | ||
| trice_limits.h | ||
| zone_names.h | ||