mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-12-23 03:40:05 +00:00
Disallow vehicles in non-overworld instances
This commit is contained in:
parent
69266d1cda
commit
124ea33959
@ -494,6 +494,10 @@ static void revivePlayer(CNSocket* sock, CNPacketData* data) {
|
||||
static void enterPlayerVehicle(CNSocket* sock, CNPacketData* data) {
|
||||
Player* plr = getPlayer(sock);
|
||||
|
||||
// vehicles are only allowed in the overworld
|
||||
if (plr->instanceID != 0)
|
||||
return;
|
||||
|
||||
bool expired = plr->Equip[8].iTimeLimit < getTimestamp() && plr->Equip[8].iTimeLimit != 0;
|
||||
|
||||
if (plr->Equip[8].iID > 0 && !expired) {
|
||||
|
Loading…
Reference in New Issue
Block a user