-
-
Notifications
You must be signed in to change notification settings - Fork 538
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
Update MSG_FOREVER to be much longer #420
base: main
Are you sure you want to change the base?
Conversation
Bumped up the time given to bots in MSG_FOREVER to the largest possible float value in the C language. This might need testing.
I would use the FLT_MAX macro. |
@deathsythe47 I agree. I'll update that as soon as possible, and it can be tested from there. |
FLT_MAX is unlikely to exist in QVM code or if it does, it's defined in bg_lib.h |
@ensiform I'll have to check and see if FLT_MAX is there or not before I do anything to this PR. |
Most likely, yes. I'll have to fix Travis builds on this PR before this can be merged. |
The linked story is a hoax. Bots don't 'learn' in-game. The Quake 3 server automatically reloads the map after 23 days to avoid milliseconds in 32-bit integer wrapping around to negative values. Bot data is reset then as well. Extending bot order duration of "forever" beyond the current value of ~3 years doesn't affect anything. Changing the duration for MSG_FOREVER is an unnecessary (map can't run long enough) and using FLT_MAX is difficult to review side affects. I don't endorse this as a good idea. For example Regarding the pull request:
This is the memory representation of IEEE float max. You can't assign it as Having MSG_FOREVER be
This is seconds, not minutes. Not that it can be comprehended anyway. |
So you're saying that, in order to use FLT_MAX here, it'd require some tweaking (and probably a bunch of testing, too). Comment's fixed at least now, the testing will still need to be done on this PR. |
fix comment according to zturtleman's old post in the relevant PR
Bumped up the time given to bots in MSG_FOREVER to the largest possible float value in the C language, as per https://docs.microsoft.com/en-us/cpp/c-language/type-float. This might need testing.
Basically a rehash of clover-moe/mint-arena#5.