January 15, 2021, 02:54:07 PM

Author Topic: bug : millisecs() returns a negative decreasing value on Windows 10 (fixed)  (Read 2881 times)

Offline RemiD

  • Hero Member
  • *****
  • Posts: 1126
Re: bug : millisecs() returns a negative decreasing value on Windows 10
« Reply #15 on: March 27, 2018, 09:27:13 PM »
ok, what TomToad suggested ( using (MilliSecs() And $7FFFFFFF) instead of Millisecs() ) apparently works, it returns a positive value which increases. Good ! thanks.

The other workaround that i have found was to set the initial MilliValue for each entity to -2147483647+I (I being the index number of the entity)

Thanks TomToad ! :)
DualCore AMD E-450, 1646 MHz - 6 Go DDR3 1333 SDRAM - AMD Radeon HD 6320 Graphics (384 Mo) - Windows 7 Home Premium - DirectX 11.0

Offline grindalf

  • Full Member
  • ***
  • Posts: 159
I was also having this problem in my game on win10 but for me it doesn't always happen(seems to only happen if my computer has been in sleep mode) Turning the computer off and back on solves it. I have rewritten my code now so I no longer have the issue

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal