Moved SetCityZone to WorldDatabase::LoadZoneInfo.
This commit is contained in:
parent
4e43909784
commit
72e9c0252c
1 changed files with 2 additions and 1 deletions
|
@ -2709,7 +2709,7 @@ void WorldDatabase::LoadZoneInfo(ZoneServer* zone){
|
|||
Query query;
|
||||
int32 ruleset_id;
|
||||
char* escaped = getEscapeString(zone->GetZoneName());
|
||||
MYSQL_RES* result = query.RunQuery2(Q_SELECT, "SELECT id, file, description, underworld, safe_x, safe_y, safe_z, min_status, min_level, max_level, instance_type+0, shutdown_timer, zone_motd, default_reenter_time, default_reset_time, default_lockout_time, force_group_to_zone, safe_heading, xp_modifier, ruleset_id, expansion_id, weather_allowed, sky_file, can_bind, can_gate FROM zones where name='%s'",escaped);
|
||||
MYSQL_RES* result = query.RunQuery2(Q_SELECT, "SELECT id, file, description, underworld, safe_x, safe_y, safe_z, min_status, min_level, max_level, instance_type+0, shutdown_timer, zone_motd, default_reenter_time, default_reset_time, default_lockout_time, force_group_to_zone, safe_heading, xp_modifier, ruleset_id, expansion_id, weather_allowed, sky_file, can_bind, can_gate, city_zone FROM zones where name='%s'",escaped);
|
||||
if(result && mysql_num_rows(result) > 0) {
|
||||
MYSQL_ROW row;
|
||||
row = mysql_fetch_row(result);
|
||||
|
@ -2757,6 +2757,7 @@ void WorldDatabase::LoadZoneInfo(ZoneServer* zone){
|
|||
}
|
||||
zone->SetCanBind(atoul(row[23]));
|
||||
zone->SetCanGate(atoul(row[24]));
|
||||
zone->SetCityZone(atoi(row[25]));
|
||||
}
|
||||
safe_delete_array(escaped);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue