From: Andrew C. <ac...@us...> - 2004-02-17 02:37:56
|
Update of /cvsroot/planeshift/planeshift/src/server In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4035/src/server Modified Files: cachemanager.cpp Log Message: Fixed bug [892907] /cast command case sensitive by using a CompareNoCase() Index: cachemanager.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/server/cachemanager.cpp,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** cachemanager.cpp 14 Feb 2004 06:54:03 -0000 1.34 --- cachemanager.cpp 17 Feb 2004 02:29:24 -0000 1.35 *************** *** 687,691 **** // TODO: This function needs to be implemented in a fast fashion psSpell *CacheManager::GetSpellByName(const csString & name) ! { int i; for (i=0;i<spellList.Length();i++) --- 687,691 ---- // TODO: This function needs to be implemented in a fast fashion psSpell *CacheManager::GetSpellByName(const csString & name) ! { int i; for (i=0;i<spellList.Length();i++) *************** *** 693,697 **** psSpell *currentSpell; currentSpell=spellList.Get(i); ! if (currentSpell && name==currentSpell->GetName()) return currentSpell; } --- 693,697 ---- psSpell *currentSpell; currentSpell=spellList.Get(i); ! if (currentSpell && name.CompareNoCase(currentSpell->GetName())) return currentSpell; } |