|
@@ -8356,17 +8356,17 @@ bool Client::GateAllowed() {
|
|
|
|
|
|
bool Client::BindAllowed() {
|
|
bool Client::BindAllowed() {
|
|
ZoneServer* zone = GetCurrentZone();
|
|
ZoneServer* zone = GetCurrentZone();
|
|
-// int canbind;
|
|
|
|
|
|
+
|
|
bool canbind = zone->GetCanBind();
|
|
bool canbind = zone->GetCanBind();
|
|
return canbind;
|
|
return canbind;
|
|
}
|
|
}
|
|
|
|
|
|
bool Client::Bind() {
|
|
bool Client::Bind() {
|
|
int canbind = BindAllowed();
|
|
int canbind = BindAllowed();
|
|
- cout << "\n\n--------------------DEV2------------------- [" << canbind << "]\n\n";
|
|
|
|
|
|
+
|
|
if(canbind == 0) {
|
|
if(canbind == 0) {
|
|
return false;
|
|
return false;
|
|
- }
|
|
|
|
|
|
+ }
|
|
player->GetPlayerInfo()->SetBindZone(GetCurrentZone()->GetZoneID());
|
|
player->GetPlayerInfo()->SetBindZone(GetCurrentZone()->GetZoneID());
|
|
player->GetPlayerInfo()->SetBindX(player->GetX());
|
|
player->GetPlayerInfo()->SetBindX(player->GetX());
|
|
player->GetPlayerInfo()->SetBindY(player->GetY());
|
|
player->GetPlayerInfo()->SetBindY(player->GetY());
|