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;
|
break;
|
||||||
case NETDELAY_OPT:
|
case NETDELAY_OPT:
|
||||||
{
|
{
|
||||||
if (parseIntOption (optarg, &netplayOptions.inputDelay,
|
int temp;
|
||||||
"network input delay") == -1)
|
if (parseIntOption (optarg, &temp, "network input delay")
|
||||||
|
== -1)
|
||||||
{
|
{
|
||||||
badArg = TRUE;
|
badArg = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
netplayOptions.inputDelay = temp;
|
||||||
|
|
||||||
if (netplayOptions.inputDelay > 60 * BATTLE_FRAME_RATE)
|
if (netplayOptions.inputDelay > 60 * BATTLE_FRAME_RATE)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user