Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 17, 2010, 10:50:43 PM (14 years ago)
Author:
dafrick
Message:

Resolving some TODOs and doing some additional cleanup. Almost done now…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/questsystem/QuestManager.cc

    r7456 r7552  
    100100    bool QuestManager::registerQuest(Quest* quest)
    101101    {
    102         //TODO: Replace with assert.
    103         if(quest == NULL) // Doh! Just as if there were actual quests behind NULL-pointers.
    104         {
    105             COUT(2) << "Registration of Quest in QuestManager failed, because inserted Quest-pointer was NULL." << std::endl;
    106             return false;
    107         }
     102        assert(quest);
    108103
    109104        std::pair<std::map<std::string, Quest*>::iterator,bool> result;
     
    143138    bool QuestManager::registerHint(QuestHint* hint)
    144139    {
    145         //TODO: Replace with assert.
    146         if(hint == NULL) // Still not liking NULL-pointers.
    147         {
    148             COUT(2) << "Registration of QuestHint in QuestManager failed, because inserted QuestHint-pointer was NULL." << std::endl;
    149             return false;
    150         }
     140        assert(hint);
    151141
    152142        std::pair<std::map<std::string, QuestHint*>::iterator,bool> result;
Note: See TracChangeset for help on using the changeset viewer.