Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Serious_MOod

[ZScript] The problem with MSTime

Recommended Posts

Hello everybody. I have a wad in which there is a code for ZScript. The problem is that it worked correctly in versions 3.0 - 3.2 (approximately), but in later versions it does not work as it should. It seems to be related to MSTime. The problem is that I did not write the code, and I do not understand ZScript at all. The author of the code tried to fix it, but the bug did not go anywhere. The bug lies in the following - there is a torch. The torch has dynamic lighting. And this lighting does not match the color of the torch color, although in earlier versions everything worked as it should. "It looks like your code makes some assumptions about the maximum value the timer can return. This really can return any valid integer value - even negative ones. If you want to work with time results you always have to use the difference between some starting time and the current time." In the version with the corrected code (v 1.4) everything seems to be fine, but after a while the desynchronization of sprites and lighting begins. I would be grateful if someone could help with this definitively. I attach two links to the wad, in v 1.2 the original code, and in v 1.4 corrected.
https://www.dropbox.com/s/93eucnz5zbta88t/RAINBOWv1.2.pk3?dl=1
https://www.dropbox.com/s/yauaq6hvigu113y/RAINBOWv1.4.pk3?dl=1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×