From: <wel...@us...> - 2009-08-02 06:56:39
|
Revision: 4167 http://planeshift.svn.sourceforge.net/planeshift/?rev=4167&view=rev Author: weltall2 Date: 2009-08-02 06:56:32 +0000 (Sun, 02 Aug 2009) Log Message: ----------- optimized quickloading by actually loading only the equipment and not items in containers or in bulk Modified Paths: -------------- trunk/src/server/bulkobjects/pscharinventory.cpp Modified: trunk/src/server/bulkobjects/pscharinventory.cpp =================================================================== --- trunk/src/server/bulkobjects/pscharinventory.cpp 2009-08-02 06:17:57 UTC (rev 4166) +++ trunk/src/server/bulkobjects/pscharinventory.cpp 2009-08-02 06:56:32 UTC (rev 4167) @@ -267,7 +267,7 @@ bool psCharacterInventory::QuickLoad(PID use_id) { - Result items(db->Select("SELECT id, item_stats_id_standard, location_in_parent FROM item_instances WHERE char_id_owner = %u AND location_in_parent != -1", use_id.Unbox())); + Result items(db->Select("SELECT id, item_stats_id_standard, location_in_parent FROM item_instances WHERE char_id_owner = %u AND location_in_parent != -1 AND location_in_parent < %d AND (parent_item_id IS NULL OR parent_item_id = 0)" , use_id.Unbox(), PSCHARACTER_SLOT_BULK1)); if ( items.IsValid() ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |