From: <ac...@us...> - 2007-11-11 02:39:51
|
Revision: 250 http://planeshift.svn.sourceforge.net/planeshift/?rev=250&view=rev Author: acraig Date: 2007-11-10 18:39:56 -0800 (Sat, 10 Nov 2007) Log Message: ----------- Removed the loading of stats/skills on quick load. Since there is no verification of ability to equip an item here they are not needed. Modified Paths: -------------- trunk/docs/history.txt trunk/src/server/bulkobjects/pscharacter.cpp trunk/src/server/bulkobjects/pscharacterloader.cpp Modified: trunk/docs/history.txt =================================================================== --- trunk/docs/history.txt 2007-11-11 02:14:47 UTC (rev 249) +++ trunk/docs/history.txt 2007-11-11 02:39:56 UTC (rev 250) @@ -6,6 +6,8 @@ everytime a character is loaded. - Moved some data when quick loading a character so only one query to the character table is needed. +- Removed the loading of skills on quick load. There is no verification of + item equipping here so the skills are not needed. *** 2007-11-10 by Roland Schulz - fix for BT#2755: Guild edit permission. Now actor can only change priviledges Modified: trunk/src/server/bulkobjects/pscharacter.cpp =================================================================== --- trunk/src/server/bulkobjects/pscharacter.cpp 2007-11-11 02:14:47 UTC (rev 249) +++ trunk/src/server/bulkobjects/pscharacter.cpp 2007-11-11 02:39:56 UTC (rev 250) @@ -422,21 +422,7 @@ if (!noInventory) { SetRaceInfo(raceinfo); - - attributes.SetStat(PSITEMSTATS_STAT_STRENGTH,(unsigned int)row.GetFloat("base_strength"), false); - - attributes.SetStat(PSITEMSTATS_STAT_AGILITY,(unsigned int)row.GetFloat("base_agility"), false); - attributes.SetStat(PSITEMSTATS_STAT_ENDURANCE,(unsigned int)row.GetFloat("base_endurance"), false); - attributes.SetStat(PSITEMSTATS_STAT_INTELLIGENCE,(unsigned int)row.GetFloat("base_intelligence"), false); - attributes.SetStat(PSITEMSTATS_STAT_WILL,(unsigned int)row.GetFloat("base_will"), false); - attributes.SetStat(PSITEMSTATS_STAT_CHARISMA,(unsigned int)row.GetFloat("base_charisma"), false); - - if (!LoadSkills(characterid)) - { - Error2("Cannot load skills for Character ID %u.",characterid); - return false; - } - + helmGroup = raceinfo->helmGroup; if (!LoadTraits(characterid)) Modified: trunk/src/server/bulkobjects/pscharacterloader.cpp =================================================================== --- trunk/src/server/bulkobjects/pscharacterloader.cpp 2007-11-11 02:14:47 UTC (rev 249) +++ trunk/src/server/bulkobjects/pscharacterloader.cpp 2007-11-11 02:39:56 UTC (rev 250) @@ -229,7 +229,7 @@ psCharacter *psCharacterLoader::QuickLoadCharacterData(unsigned int uid, bool noInventory) { - Result result(db->Select("SELECT id, name, lastname, racegender_id, base_strength,base_agility, base_endurance, base_intelligence, base_will, base_charisma from characters where id=%u LIMIT 1",uid)); + Result result(db->Select("SELECT id, name, lastname, racegender_id from characters where id=%u LIMIT 1",uid)); if (!result.IsValid() || result.Count() < 1) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |