mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-03 17:32:33 +00:00
code optimization
This commit is contained in:
parent
5ec0b9993a
commit
57f8f61094
@ -1,6 +1,4 @@
|
|||||||
ALTER TABLE `merc_stats`
|
ALTER TABLE `merc_stats` MODIFY COLUMN `special_abilities` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL AFTER `attack_speed`;
|
||||||
MODIFY COLUMN `special_abilities` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL AFTER `attack_speed`;
|
|
||||||
|
|
||||||
ALTER TABLE `npc_types`
|
ALTER TABLE `npc_types` MODIFY COLUMN `special_abilities` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL AFTER `npcspecialattks`;
|
||||||
MODIFY COLUMN `special_abilities` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL AFTER `npcspecialattks`;
|
|
||||||
|
|
||||||
|
|||||||
@ -1820,7 +1820,7 @@ const NPCType* ZoneDatabase::GetNPCType (uint32 id) {
|
|||||||
if (row[34] != nullptr)
|
if (row[34] != nullptr)
|
||||||
strn0cpy(tmpNPCType->special_abilities, row[34], 512);
|
strn0cpy(tmpNPCType->special_abilities, row[34], 512);
|
||||||
else
|
else
|
||||||
strn0cpy(tmpNPCType->special_abilities,"\0", 512);
|
tmpNPCTYpe->special_abilities[0] = '\0';
|
||||||
|
|
||||||
tmpNPCType->npc_spells_id = atoi(row[35]);
|
tmpNPCType->npc_spells_id = atoi(row[35]);
|
||||||
tmpNPCType->npc_spells_effects_id = atoi(row[36]);
|
tmpNPCType->npc_spells_effects_id = atoi(row[36]);
|
||||||
@ -2027,7 +2027,7 @@ const NPCType* ZoneDatabase::GetMercType(uint32 id, uint16 raceid, uint32 client
|
|||||||
if (row[27] != nullptr)
|
if (row[27] != nullptr)
|
||||||
strn0cpy(tmpNPCType->special_abilities, row[27], 512);
|
strn0cpy(tmpNPCType->special_abilities, row[27], 512);
|
||||||
else
|
else
|
||||||
strn0cpy(tmpNPCType->special_abilities,"\0", 512);
|
tmpNPCTYpe->special_abilities[0] = '\0';
|
||||||
|
|
||||||
tmpNPCType->d_meele_texture1 = atoi(row[28]);
|
tmpNPCType->d_meele_texture1 = atoi(row[28]);
|
||||||
tmpNPCType->d_meele_texture2 = atoi(row[29]);
|
tmpNPCType->d_meele_texture2 = atoi(row[29]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user