Skip to content

Commit

Permalink
Don't allow negative target values for SetPreSend
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmitti committed Jun 28, 2019
1 parent 64742dc commit bb7d246
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/C4Script.cpp
Expand Up @@ -5948,6 +5948,7 @@ static bool FnSetViewOffset(C4AulContext *ctx, long iPlayer, long iX, long iY)

static bool FnSetPreSend(C4AulContext *cthr, long iToVal, C4String *pNewName)
{
if (iToVal < 0) return false;
if (!Game.Control.isNetwork()) return true;
if (iToVal == 0) iToVal = C4GameControlNetwork::DefaultTargetFPS;
// dbg: manual presend
Expand Down

0 comments on commit bb7d246

Please sign in to comment.