mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2025-08-18 12:55:36 +00:00
UnicycleID reset
This commit is contained in:
parent
15f7a6ba85
commit
029cf94e68
@ -244,6 +244,9 @@ void TServer::ParseVehicle(TClient& c, const std::string& Pckt, TNetwork& Networ
|
||||
Network.SendToAll(&c, Packet, false, true);
|
||||
Apply(c, VID, Packet);
|
||||
} else {
|
||||
if(c.GetUnicycleID() == VID){
|
||||
c.SetUnicycleID(-1);
|
||||
}
|
||||
std::string Destroy = "Od:" + std::to_string(c.GetID()) + "-" + std::to_string(VID);
|
||||
if (!Network.Respond(c, Destroy, true)) {
|
||||
// TODO: handle
|
||||
|
Loading…
x
Reference in New Issue
Block a user