From: Christian S. <blu...@us...> - 2004-11-28 19:28:51
|
Update of /cvsroot/planeshift/planeshift/src/server In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32228/src/server Modified Files: spawnmanager.cpp Log Message: - Fixed spawn rules to be invalid if you had 0 in loot_category Index: spawnmanager.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/server/spawnmanager.cpp,v retrieving revision 1.80 retrieving revision 1.81 diff -C2 -d -r1.80 -r1.81 *** spawnmanager.cpp 22 Nov 2004 16:11:29 -0000 1.80 --- spawnmanager.cpp 28 Nov 2004 18:59:18 -0000 1.81 *************** *** 180,188 **** { LootEntrySet *loot_set = looting.Get( result[i].GetInt("loot_category_id"), NULL ); - if (loot_set == NULL) - { - Error2("Loot set not found: loot_category_id=%i", result[i].GetInt("loot_category_id")); - continue; - } SpawnRule *newrule = new SpawnRule; --- 180,183 ---- *************** *** 275,279 **** if (respawn) { ! respawn->GetLootRules()->CreateLoot( obj->GetCharacterData() ); } --- 270,275 ---- if (respawn) { ! if(respawn->GetLootRules()) ! respawn->GetLootRules()->CreateLoot( obj->GetCharacterData() ); } |