[wpdev-commits] wolfpack spawnregions.cpp,1.74,1.75
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-10-05 18:18:01
|
Update of /cvsroot/wpdev/wolfpack In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5798 Modified Files: spawnregions.cpp Log Message: fixes Index: spawnregions.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/spawnregions.cpp,v retrieving revision 1.74 retrieving revision 1.75 diff -C2 -d -r1.74 -r1.75 *** spawnregions.cpp 3 Oct 2004 23:03:18 -0000 1.74 --- spawnregions.cpp 5 Oct 2004 18:17:15 -0000 1.75 *************** *** 278,293 **** --- 278,305 ---- else if ( name == "maxnpcamount" && tag->hasAttribute("value") ) this->maxNpcAmt_ = tag->getAttribute("value").toUInt(); + + else if ( name == "maxnpcamount" ) + this->maxNpcAmt_ = value.toUShort(); // <maxitemamount value="5 " /> else if ( name == "maxitemamount" && tag->hasAttribute("value") ) this->maxItemAmt_ = tag->getAttribute("value").toUInt(); + + else if ( name == "maxitemamount" ) + this->maxItemAmt_ = value.toUShort(); // <npcspercycle value="3 " /> else if ( name == "npcspercycle" && tag->hasAttribute("value" ) ) this->npcsPerCycle_ = tag->getAttribute("value").toUInt(); + + else if ( name == "npcspercycle" ) + this->npcsPerCycle_ = value.toUShort(); // <itemspercycle value="3" /> else if ( name == "itemspercycle" && tag->hasAttribute("value" ) ) this->itemsPerCycle_ = tag->getAttribute("value").toUInt(); + + else if ( name == "itemspercycle" ) + this->itemsPerCycle_ = value.toUShort(); // <delay min="xx" max="xx" /> |