Get rid of warning.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2789 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
+4
-2
@@ -836,12 +836,14 @@ parseOptions (int argc, char *argv[], struct options_struct *options)
|
||||
break;
|
||||
case NETDELAY_OPT:
|
||||
{
|
||||
if (parseIntOption (optarg, &netplayOptions.inputDelay,
|
||||
"network input delay") == -1)
|
||||
int temp;
|
||||
if (parseIntOption (optarg, &temp, "network input delay")
|
||||
== -1)
|
||||
{
|
||||
badArg = TRUE;
|
||||
break;
|
||||
}
|
||||
netplayOptions.inputDelay = temp;
|
||||
|
||||
if (netplayOptions.inputDelay > 60 * BATTLE_FRAME_RATE)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user