From e7b23c958a9eb3ee9b3ccafb098f084eda8f95f4 Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 28 Sep 2016 23:42:01 +0200 Subject: [PATCH] Fixed: Connexion -> Connection typo --HG-- branch : develop --- code/nel/include/nel/net/pacs_client.h | 4 ++-- .../client/src/interface_v3/bar_manager.cpp | 9 ++++----- .../client/src/interface_v3/bar_manager.h | 4 ++-- code/ryzom/client/src/main_loop.cpp | 4 ++-- .../src/r2/dmc/client_edition_module.cpp | 14 +++++--------- code/ryzom/client/src/r2/dmc/dmc.cpp | 6 +++--- code/ryzom/client/src/r2/editor.cpp | 18 +++++++++--------- code/ryzom/client/src/r2/editor.h | 6 +++--- 8 files changed, 30 insertions(+), 35 deletions(-) diff --git a/code/nel/include/nel/net/pacs_client.h b/code/nel/include/nel/net/pacs_client.h index 058d1fc63..f3c6d0426 100644 --- a/code/nel/include/nel/net/pacs_client.h +++ b/code/nel/include/nel/net/pacs_client.h @@ -48,7 +48,7 @@ public: /// Constructor CPacsClient() { - // No connexion + // No connection _Server=NULL; } @@ -567,7 +567,7 @@ static TCallbackItem PacsCallbackArray[] = inline bool CPacsClient::connect () { - // Create a connexion + // Create a connection _Server = new CCallbackClient; // Look up for PACS service diff --git a/code/ryzom/client/src/interface_v3/bar_manager.cpp b/code/ryzom/client/src/interface_v3/bar_manager.cpp index 21281a700..4f98fbcdd 100644 --- a/code/ryzom/client/src/interface_v3/bar_manager.cpp +++ b/code/ryzom/client/src/interface_v3/bar_manager.cpp @@ -203,8 +203,7 @@ void CBarManager::initInGame() i++; nlassert(i==MaxTeamMember); - - // *** create connexion to the Local Output database + // *** create connection to the Local Output database for(i=0;i<_EntryBars[TeamMemberType].size();i++) { // don't connect FOCUS, since not setuped by SERVER @@ -243,7 +242,7 @@ void CBarManager::initInGame() _EntryScoreFlags[TargetType]= HpFlag | SapFlag | StaFlag | FocusFlag; // all - // *** create connexion for User Bar mgt + // *** create connection for User Bar mgt // user now can only manage 4 scores nlctassert(SCORES::NUM_SCORES==4); // Input max values @@ -308,7 +307,7 @@ void CBarManager::addEntry(TEntryType type, uint entryId, uint dataSetId) // Add me to list of entries CBarDataEntry &bde= entryArray[entryId]; bde.DataSetId= dataSetId; - // Add the entry connexion to map by DataSetId + // Add the entry connection to map by DataSetId CBarDataUID &barUID= _UIDBars[dataSetId]; barUID.EntryId[type].insert(entryId); @@ -340,7 +339,7 @@ void CBarManager::delEntry(TEntryType type, uint entryId) { // then unconnect this from the map by UID _UIDBars[dataSetId].EntryId[type].erase(entryId); - // if no more connexion are made to this UID + // if no more connection are made to this UID if(_UIDBars[dataSetId].noMoreEntry()) { // erase it diff --git a/code/ryzom/client/src/interface_v3/bar_manager.h b/code/ryzom/client/src/interface_v3/bar_manager.h index d9a3477cd..ca1532930 100644 --- a/code/ryzom/client/src/interface_v3/bar_manager.h +++ b/code/ryzom/client/src/interface_v3/bar_manager.h @@ -173,7 +173,7 @@ private: class CBarDataUID { public: - /* What connexion are valid. empty() in each case if not, else the index in the array of entries + /* What connection are valid. empty() in each case if not, else the index in the array of entries * NB: this is a set because some time, a bar data may be connected to multiple entries of same type * This typically happens when you dismiss the team member 0 'Paul' while you have a team member 1 'Pierre': * because of the server array shift, there will be a short time where TeamMember0= TeamMember1= Pierre @@ -207,7 +207,7 @@ private: TUIDToDatas _UIDBars; - // *** Data sorted by connexion Id (duplication for faster access...) + // *** Data sorted by connection Id (duplication for faster access...) class CBarDataEntry { public: diff --git a/code/ryzom/client/src/main_loop.cpp b/code/ryzom/client/src/main_loop.cpp index 93842ec3f..194c6a819 100644 --- a/code/ryzom/client/src/main_loop.cpp +++ b/code/ryzom/client/src/main_loop.cpp @@ -828,7 +828,7 @@ void updateGameQuitting() // if want quiting, and if server stalled, quit now if(game_exit_request) { - // abort until 10 seconds if connexion lost + // abort until 10 seconds if connection lost if(!NetMngr.getConnectionQuality()) { if(!firstTimeLostConnection) @@ -839,7 +839,7 @@ void updateGameQuitting() firstTimeLostConnection= 0; } - // if connexion lost until 10 seconds + // if connection lost until 10 seconds if(firstTimeLostConnection && T1-firstTimeLostConnection > 10000) { game_exit= true; diff --git a/code/ryzom/client/src/r2/dmc/client_edition_module.cpp b/code/ryzom/client/src/r2/dmc/client_edition_module.cpp index d47093c5d..867e3af3e 100644 --- a/code/ryzom/client/src/r2/dmc/client_edition_module.cpp +++ b/code/ryzom/client/src/r2/dmc/client_edition_module.cpp @@ -539,7 +539,7 @@ bool CClientEditionModule::onProcessModuleMessage(IModuleProxy *senderModuleProx if (operationName == "ADV_CONN") { - CEditor::connexionMsg(""); + CEditor::connectionMsg(""); CClientMessageAdventureUserConnection bodyConnection; nlRead(message,serial,bodyConnection); onRingAccessUpdated(0, bodyConnection.RingAccess); @@ -1048,7 +1048,7 @@ void CClientEditionModule::startScenario(class NLNET::IModuleProxy * proxy, bool this->connectAnimationModePlay(); - CEditor::connexionMsg(""); + CEditor::connectionMsg(""); if (_CharMode == TCharMode::Dm) { @@ -1069,7 +1069,7 @@ void CClientEditionModule::startScenario(class NLNET::IModuleProxy * proxy, bool } else { - CEditor::connexionMsg("uiR2EDR2StartTestError"); + CEditor::connectionMsg("uiR2EDR2StartTestError"); requestReconnection(); } @@ -1190,12 +1190,8 @@ void CClientEditionModule::startingScenario(class NLNET::IModuleProxy * /* serve } - - - CEditor::connexionMsg(connectionState); - + CEditor::connectionMsg(connectionState); } - } bool CClientEditionModule::requestStartScenario() @@ -1204,7 +1200,7 @@ bool CClientEditionModule::requestStartScenario() BOMB_IF(_ServerEditionProxy == NULL, "Server Edition Module not connected", return false); - CEditor::connexionMsg("uimR2EDGoToDMMode"); + CEditor::connectionMsg("uimR2EDGoToDMMode"); R2::getEditor().getLua().executeScriptNoThrow("r2.Version.save(\"save/r2_buffer.dat\")"); CShareServerEditionItfProxy proxy(_ServerEditionProxy); diff --git a/code/ryzom/client/src/r2/dmc/dmc.cpp b/code/ryzom/client/src/r2/dmc/dmc.cpp index 0659f0a56..f04feccf4 100644 --- a/code/ryzom/client/src/r2/dmc/dmc.cpp +++ b/code/ryzom/client/src/r2/dmc/dmc.cpp @@ -724,7 +724,7 @@ void CDynamicMapClient::onEditionModeConnected( uint32 userSlotId, uint32 /* adv _EditionModule->getCurrentScenario()->setSessionType(st_edit); scenarioUpdated(highLevel, willTP, initialActIndex); // handle by CEditor.cpp that call _EditionModule->updateScenario(highLevel); - CEditor::connexionMsg(""); + CEditor::connectionMsg(""); //_EditionModule->requestSetPioneerRight( TPioneerRight::DM); } @@ -778,13 +778,13 @@ void CDynamicMapClient::onResetEditionMode() void CDynamicMapClient::onTestModeConnected() { //H_AUTO(R2_CDynamicMapClient_onTestModeConnected) - CEditor::connexionMsg(""); + CEditor::connectionMsg(""); } void CDynamicMapClient::onTestModeDisconnected(TSessionId /* sessionId */, uint32 /* lasAct */, TScenarioSessionType /* sessionType */) { //H_AUTO(R2_CDynamicMapClient_onTestModeDisconnected) - CEditor::connexionMsg("uimR2EDGoToEditingMode"); + CEditor::connectionMsg("uimR2EDGoToEditingMode"); } CObject* CDynamicMapClient::getCurrentScenarioHighLevel() diff --git a/code/ryzom/client/src/r2/editor.cpp b/code/ryzom/client/src/r2/editor.cpp index 2bcc56285..8e7e13597 100644 --- a/code/ryzom/client/src/r2/editor.cpp +++ b/code/ryzom/client/src/r2/editor.cpp @@ -2425,7 +2425,7 @@ void CEditor::setMode(TMode mode) // set new mode in lua _Env.setValue("Mode", "GoingToDM"); setUIMode(3); - connexionMsg(_ConnexionMsg); // update connexion window + connectionMsg(_ConnectionMsg); // update connection window ::IgnoreEntityDbUpdates = false; ::initContextualCursor(); nlassert(CDisplayerBase::ObjCount == 0); @@ -2437,7 +2437,7 @@ void CEditor::setMode(TMode mode) // set new mode in lua _Env.setValue("Mode", "BackToEditing"); setUIMode(3); - connexionMsg(_ConnexionMsg); // update connexion window + connectionMsg(_ConnectionMsg); // update connection window ::IgnoreEntityDbUpdates = true; ::initContextualCursor(); resetPlotItems(); @@ -2449,7 +2449,7 @@ void CEditor::setMode(TMode mode) // set new mode in lua _Env.setValue("Mode", "AnimationModeLoading"); setUIMode(3); - connexionMsg(_ConnexionMsg); // update connexion window + connectionMsg(_ConnectionMsg); // update connection window // ::IgnoreEntityDbUpdates = true; ::initContextualCursor(); resetPlotItems(); @@ -2461,7 +2461,7 @@ void CEditor::setMode(TMode mode) // set new mode in lua _Env.setValue("Mode", "AnimationModeWaitingForLoading"); setUIMode(3); - connexionMsg(_ConnexionMsg); // update connexion window + connectionMsg(_ConnectionMsg); // update connection window // ::IgnoreEntityDbUpdates = true; ::initContextualCursor(); resetPlotItems(); @@ -2513,7 +2513,7 @@ void CEditor::setMode(TMode mode) //set new mode in lua _Env.setValue("Mode", "AnimationModeGoingToDM"); setUIMode(3); - connexionMsg(_ConnexionMsg); // update connexion window + connectionMsg(_ConnectionMsg); // update connection window ::IgnoreEntityDbUpdates = false; ::initContextualCursor(); resetPlotItems(); @@ -6408,11 +6408,11 @@ NLMISC::CAABBox CEditor::getSelectBox(CEntityCL &entity) const } // ********************************************************************************************************* -void CEditor::connexionMsg(const std::string &stringId) +void CEditor::connectionMsg(const std::string &stringId) { - //H_AUTO(R2_CEditor_connexionMsg) + //H_AUTO(R2_CEditor_connectionMsg) CHECK_EDITOR - getEditor()._ConnexionMsg = stringId; + getEditor()._ConnectionMsg = stringId; // ignore if current ui desktop is not the third if (getUI().getMode() != 3) return; // show the connection window @@ -6489,7 +6489,7 @@ void CEditor::connect() { R2::getEditor().setMode(CEditor::GoingToEditionMode); } - CEditor::connexionMsg("uimR2EDGoToEditingMode"); + CEditor::connectionMsg("uimR2EDGoToEditingMode"); } catch (const std::exception& e) { diff --git a/code/ryzom/client/src/r2/editor.h b/code/ryzom/client/src/r2/editor.h index c38dfc40d..8b1c371eb 100644 --- a/code/ryzom/client/src/r2/editor.h +++ b/code/ryzom/client/src/r2/editor.h @@ -527,8 +527,8 @@ public: CInstance *getInstanceUnderPos(float x, float y, float distSelection, bool &isPlayerUnderCursor); // helper : test intersection between an entity and a ray static float preciseEntityIntersectionTest(CEntityCL &entity, const NLMISC::CVector &worldRayStart, const NLMISC::CVector &worldRayDir); - // Tmp show the connexion window and display a msg in it. An empty msg will close the window - static void connexionMsg(const std::string &stringId); + // Tmp show the connection window and display a msg in it. An empty msg will close the window + static void connectionMsg(const std::string &stringId); TEntityCustomSelectBoxMap &getEntityCustomSelectBoxMap() { return _EntityCustomSelectBoxMap; } // from a pointer on an entity, retrieve its local selection bbox (possibly redefined in r2_ui_custom_boxes_data.lua const NLMISC::CAABBox &getLocalSelectBox(CEntityCL &entity) const; @@ -955,7 +955,7 @@ private: bool _ClearingContent; - std::string _ConnexionMsg; + std::string _ConnectionMsg; static std::string _ScenarioToLoadWhenEntreringIntoAnimation; static bool _IsStartingScenario; // the scenario is an animation scenario launch from the ring access point