[iortcw] 273/497: All: Fix parsing bots in arena info with trailing spaces (unused)
Simon McVittie
smcv at debian.org
Fri Sep 8 10:37:06 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to annotated tag 1.42d
in repository iortcw.
commit dc9c179263b026cbe83df70e0ccb1d189e25eae7
Author: M4N4T4RMS at gmail.com <M4N4T4RMS at gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date: Tue Jan 13 23:03:46 2015 +0000
All: Fix parsing bots in arena info with trailing spaces (unused)
---
MP/code/game/g_bot.c | 2 +-
SP/code/game/g_bot.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/MP/code/game/g_bot.c b/MP/code/game/g_bot.c
index 3a576d3..4829cb0 100644
--- a/MP/code/game/g_bot.c
+++ b/MP/code/game/g_bot.c
@@ -665,7 +665,7 @@ static void G_SpawnBots( char *botList, int baseDelay ) {
while ( *p && *p == ' ' ) {
p++;
}
- if ( !p ) {
+ if ( !*p ) {
break;
}
diff --git a/SP/code/game/g_bot.c b/SP/code/game/g_bot.c
index 842eef5..3c6b567 100644
--- a/SP/code/game/g_bot.c
+++ b/SP/code/game/g_bot.c
@@ -666,7 +666,7 @@ static void G_SpawnBots( char *botList, int baseDelay ) {
while( *p && *p == ' ' ) {
p++;
}
- if( !p ) {
+ if( !*p ) {
break;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git
More information about the Pkg-games-commits
mailing list