-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix -levelstat in release build #2103
Conversation
levelString, (secretexit ? "s" : ""), | ||
levelTimeString, totalTimeString, playerKills, totalkills, | ||
playerItems, totalitems, playerSecrets, totalsecret); | ||
|
||
fclose(fstream); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, we didn't even close the levelstat.txt
file handler until now? I wonder why this bug wasn't spotted earlier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the Windows standard C library (CRT) has been updated and changed its behavior. I can't replicate it on my local Win10 build, but our release build is latest Windows Server with all updates installed and has static CRT, so release artifacts have this bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appending after each level is better anyway, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Fix #2102