dacey wrote:I just updated BOB and it doesn't seem to be calculating the "last bonus" correctly for everyone. For example, in game 5648321it's telling me that godiva1998's last bonus was 6, but that was two turns ago (last turn they received 3). I've noticed it a couple other times, too. Is anyone else having this problem?
This is the reason I'll probably need another update. I forgot to remove some code, which adds troops to the 'last bonus' when someone got the +2 if you own a territory and hand in that card. Fixed it in the code already, but I'm gonna wait with increasing the version a bit.
yowzer14 wrote:Just noticed a small coding issue in your change to the toggleFormWidth()
- Code: Select all
var cur = getMinFormWidth();
cur = cur-50;
if (cur >= 1000) {
cur = 1000;
}
if (cur >= 1200 || cur <= 599) {
cur = 1200;
}
The 1200 is redundant as the 1000 will preclude it.
Perhaps you meant...
- Code: Select all
var cur = getMinFormWidth(myOptions,mapName);
cur = cur-50;
if (cur >= 1000) {
cur = 1000;
}
if (cur <= 599) {
cur = 1200;
}
Lol, you're right, though it's an extremely small effect. But thanks for checking the code.