* Check for underflowing the map. * @param test the variable to test for underflowing * @param other the other variable to update to keep the line * @param mult the constant to multiply the difference by for \c other */
| 3044 | * @param mult the constant to multiply the difference by for \c other |
| 3045 | */ |
| 3046 | static void CheckUnderflow(int &test, int &other, int mult) |
| 3047 | { |
| 3048 | if (test >= 0) return; |
| 3049 | |
| 3050 | other += mult * test; |
| 3051 | test = 0; |
| 3052 | } |
| 3053 | |
| 3054 | /** |
| 3055 | * Check for overflowing the map. |
no outgoing calls
no test coverage detected