Skip to content

Commit

Permalink
Merge pull request #891 from openmultiplayer/ksn/vandalism
Browse files Browse the repository at this point in the history
Fix OnPlayerConnect regression after gmx.
  • Loading branch information
ksenonadv authored Mar 8, 2024
2 parents 860a1d2 + 73ffe69 commit 8e118a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions SDK/include/network.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ enum PeerDisconnectReason
PeerDisconnectReason_Timeout,
PeerDisconnectReason_Quit,
PeerDisconnectReason_Kicked,
// Never used by us, reserved for some existing libraries.
_PeerDisconnectReason_Custom,
// 4 to match fixes.inc, which wasn't 3 because some other libraries already used it.
PeerDisconnectReason_ModeEnd
};

enum OrderingChannel
Expand Down
2 changes: 1 addition & 1 deletion Server/Components/Pawn/Manager/Manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ bool PawnManager::Load(std::string const& name, bool isEntryScript, bool restart
scripts_.push_back(ptr);
amxToScript_.emplace(script.GetAMX(), ptr);
}
openAMX(script, isEntryScript);
openAMX(script, isEntryScript, restarting);
return true;
}

Expand Down

0 comments on commit 8e118a3

Please sign in to comment.