[ioquake3] 73/136: Replace constant value with UIAS_GLOBAL1
Simon McVittie
smcv at debian.org
Thu Jun 15 09:09:11 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository ioquake3.
commit 2bbe178bc8bcc7d293748a2821652da7de890318
Author: Zack Middleton <zack at cloemail.com>
Date: Thu Jun 1 14:36:13 2017 -0500
Replace constant value with UIAS_GLOBAL1
---
code/q3_ui/ui_servers2.c | 4 ++--
code/ui/ui_main.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/code/q3_ui/ui_servers2.c b/code/q3_ui/ui_servers2.c
index c5c4c74..d376d36 100644
--- a/code/q3_ui/ui_servers2.c
+++ b/code/q3_ui/ui_servers2.c
@@ -1073,10 +1073,10 @@ static void ArenaServers_StartRefresh( void )
protocol[0] = '\0';
trap_Cvar_VariableStringBuffer( "debug_protocol", protocol, sizeof(protocol) );
if (strlen(protocol)) {
- trap_Cmd_ExecuteText( EXEC_APPEND, va( "globalservers %d %s%s\n", g_servertype - 1, protocol, myargs ));
+ trap_Cmd_ExecuteText( EXEC_APPEND, va( "globalservers %d %s%s\n", g_servertype - UIAS_GLOBAL1, protocol, myargs ));
}
else {
- trap_Cmd_ExecuteText( EXEC_APPEND, va( "globalservers %d %d%s\n", g_servertype - 1, (int)trap_Cvar_VariableValue( "protocol" ), myargs ) );
+ trap_Cmd_ExecuteText( EXEC_APPEND, va( "globalservers %d %d%s\n", g_servertype - UIAS_GLOBAL1, (int)trap_Cvar_VariableValue( "protocol" ), myargs ) );
}
}
}
diff --git a/code/ui/ui_main.c b/code/ui/ui_main.c
index 63d90eb..21cd6f0 100644
--- a/code/ui/ui_main.c
+++ b/code/ui/ui_main.c
@@ -5993,10 +5993,10 @@ static void UI_StartServerRefresh(qboolean full, qboolean force)
ptr = UI_Cvar_VariableString("debug_protocol");
if (strlen(ptr)) {
- trap_Cmd_ExecuteText( EXEC_NOW, va( "globalservers %d %s full empty\n", ui_netSource.integer-1, ptr));
+ trap_Cmd_ExecuteText( EXEC_NOW, va( "globalservers %d %s full empty\n", ui_netSource.integer - UIAS_GLOBAL1, ptr ) );
}
else {
- trap_Cmd_ExecuteText( EXEC_NOW, va( "globalservers %d %d full empty\n", ui_netSource.integer-1, (int)trap_Cvar_VariableValue( "protocol" ) ) );
+ trap_Cmd_ExecuteText( EXEC_NOW, va( "globalservers %d %d full empty\n", ui_netSource.integer - UIAS_GLOBAL1, (int)trap_Cvar_VariableValue( "protocol" ) ) );
}
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git
More information about the Pkg-games-commits
mailing list