cool3a2
Deity
- Joined
- Mar 30, 2007
- Messages
- 2,177
Yeah, I know about this and even thought that there is an implicit cast to int. I just skipped the step with the rounding as it is of no interest here for the following reason: as the comparism is > and not == and as the value to compare with is an int, it is pretty much the same whether the result is 3.5 or 3 - both will enable only nummers that are higher or equal 4. Well, anyways.In C++, the result of dividing an int is always rounded down - the non-integer part is truncated. So when you divide 7 by 2 you get 3, not 4.
(I have edited my last post meanwhile writing about a quick fix - please read before proceeding.)
I will upload a test package soon. There will be a slightly hacked America enabling custom art for the baracks. If people don't find an issue, I will set up a final package containing only the necessary stuff plus source codes in a few days. The only question will be: should I start an own thread for this or shall we consider this an update and provide it here?