((n > 0) and (config.DRAWSAREWINS)) == 0 has the opposite of the intended behaviour because of misplaced parentheses. If n = 0 and config.DRAWSAREWINS is also 0, this whole statement evaluates to true (because False and 0 evaluates to False, but False == 0 evaluates to true). This leads to divide-by-zero errors.
((n > 0) and (config.DRAWSAREWINS)) == 0
has the opposite of the intended behaviour because of misplaced parentheses. If n = 0 and config.DRAWSAREWINS is also 0, this whole statement evaluates to true (becauseFalse and 0
evaluates toFalse
, butFalse == 0
evaluates to true). This leads to divide-by-zero errors.This PR reinstates the intended behaviour.