Minor documentation fixes.

This commit is contained in:
Aleric Inglewood
2011-07-29 17:24:39 +02:00
parent b6d5743ccb
commit 057a154a6d
3 changed files with 5 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ struct AIRSData {
AIRSData(bool one_shot) : mOneShot(one_shot) { }
};
// A list of all statemachines registered for a particular event, and and API to work on it.
// A list of all statemachines registered for a particular event, and an API to work on it.
struct AIRegisteredStateMachines {
typedef std::map<AIStateMachine*, AIRSData> rsm_type;
rsm_type mRegisteredStateMachines;

View File

@@ -56,7 +56,7 @@ class AIEvent {
*
* This may be called for already unregistered events.
* This should be called from the destructor of a statemachine for any event it registers,
* as well as when it doesn't need the event anymore (in the case on non- one shot events).
* as well as when it doesn't need the event anymore (in the case of non- one shot events).
*
* @param event the event we want to no longer be notified off.
* @param statemachine the statemachine.

View File

@@ -88,7 +88,10 @@ void AIFetchInventoryFolder::initialize_impl(void)
mNeedNotifyObservers = false;
set_state(AIFetchInventoryFolder_checkFolderExists);
if (!gInventory.isInventoryUsable())
{
// This immediately calls this->idle(), and then when the event occurs cont().
AIEvent::Register(AIEvent::LLInventoryModel_mIsAgentInvUsable_true, this);
}
}
void AIFetchInventoryFolder::multiplex_impl(void)