Author Topic: NO RESET!?!?  (Read 596 times)

Offline Max

  • Platinum Member
  • ******
  • Posts: 7705
Re: NO RESET!?!?
« Reply #15 on: February 12, 2013, 09:47:15 AM »
It's been reset.  It was a floating point error that showed the winning side as having 71.999999999 of their own fields instead of the 72 that they had and needed to trigger the war reset.

I'll sleep better tonight knowing the world is right again  :D

Offline VonMessa

  • Plutonium Member
  • *******
  • Posts: 11922
Re: NO RESET!?!?
« Reply #16 on: February 12, 2013, 11:06:12 AM »
Some times coding is a pita.

the line
FieldPer = (float)CountryFieldCnt/(float)BaseFieldCnt

is the culprit.

the expression (float)((float)72/(float)80) evaluates to 0.89999998 instead of 0.9
Hence it is less then 90%

HiTech

Someone translate.

Did he just call someone a Cnt?
« Last Edit: February 12, 2013, 11:37:26 AM by VonMessa »
Braümeister und Schmutziger Hund von JG11


We are all here because we are not all there.

Online BigR

  • Silver Member
  • ****
  • Posts: 926
Re: NO RESET!?!?
« Reply #17 on: February 12, 2013, 11:34:00 AM »