Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code/game/ai_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ float BotGetTime(bot_match_t *match) {
//match it to find out if the time is in seconds or minutes
if (trap_BotFindMatch(timestring, &timematch, MTCONTEXT_TIME)) {
if (timematch.type == MSG_FOREVER) {
t = 99999999.0f;
t = FLT_MAX; // 3.402823466e+38 seconds
}
else if (timematch.type == MSG_FORAWHILE) {
t = 10 * 60; // 10 minutes
Expand Down
1 change: 1 addition & 0 deletions code/game/bg_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ typedef char * va_list;
#define INT_MAX 0x7fffffff /* maximum (signed) int value */
#define INT_MIN (-INT_MAX - 1) /* minimum (signed) int value */
#define UINT_MAX 0xffffffff /* maximum unsigned int value */
#define FLT_MAX 0x7f7fffff /* maximum float value */
#define LONG_MAX 0x7fffffffL /* maximum (signed) long value */
#define LONG_MIN (-LONG_MAX - 1) /* minimum (signed) long value */
#define ULONG_MAX 0xffffffffUL /* maximum unsigned long value */
Expand Down