From 46786a11859781dfbf631284655c5e434eee1ea1 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Mon, 18 Nov 2019 19:46:31 +0800 Subject: [PATCH] Fix comment --- .../src/server_share/log_character_gen.cpp | 8 +++---- .../src/server_share/log_command_gen.cpp | 4 ++-- .../server/src/server_share/log_item_gen.cpp | 24 +++++++++---------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/code/ryzom/server/src/server_share/log_character_gen.cpp b/code/ryzom/server/src/server_share/log_character_gen.cpp index a601c0e5a..f020e79de 100644 --- a/code/ryzom/server/src/server_share/log_character_gen.cpp +++ b/code/ryzom/server/src/server_share/log_character_gen.cpp @@ -534,7 +534,7 @@ void _log_Character_UpdateSP(const std::string &spName, float spBefore, float sp NLMISC::CEntityId charId; if (!CharacterDesc.getContextVar_charId(charId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(CharacterDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Character'"); return; } @@ -571,7 +571,7 @@ void _log_Character_LearnPhrase(const NLMISC::CSheetId &phraseId, const char *_f NLMISC::CEntityId charId; if (!CharacterDesc.getContextVar_charId(charId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(CharacterDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Character'"); return; } @@ -604,7 +604,7 @@ void _log_Character_AddKnownBrick(const NLMISC::CSheetId &brickId, const char *_ NLMISC::CEntityId charId; if (!CharacterDesc.getContextVar_charId(charId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(CharacterDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Character'"); return; } @@ -637,7 +637,7 @@ void _log_Character_RemoveKnownBrick(const NLMISC::CSheetId &brickId, const char NLMISC::CEntityId charId; if (!CharacterDesc.getContextVar_charId(charId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(CharacterDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Character'"); return; } diff --git a/code/ryzom/server/src/server_share/log_command_gen.cpp b/code/ryzom/server/src/server_share/log_command_gen.cpp index aca39ee16..93f93f667 100644 --- a/code/ryzom/server/src/server_share/log_command_gen.cpp +++ b/code/ryzom/server/src/server_share/log_command_gen.cpp @@ -232,7 +232,7 @@ void _log_Command_Exec(const std::string &cmdName, const std::string &cmdArg, co NLMISC::CEntityId charId; if (!CommandDesc.getContextVar_charId(charId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(CommandDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Command'"); return; } @@ -267,7 +267,7 @@ void _log_Command_ExecOnTarget(const NLMISC::CEntityId &targetId, const std::str NLMISC::CEntityId charId; if (!CommandDesc.getContextVar_charId(charId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(CommandDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Command'"); return; } diff --git a/code/ryzom/server/src/server_share/log_item_gen.cpp b/code/ryzom/server/src/server_share/log_item_gen.cpp index 38348ca69..885b34342 100644 --- a/code/ryzom/server/src/server_share/log_item_gen.cpp +++ b/code/ryzom/server/src/server_share/log_item_gen.cpp @@ -1249,7 +1249,7 @@ void _log_Item_Create(INVENTORIES::TItemId itemId, const NLMISC::CSheetId &sheet NLMISC::CEntityId charId; if (!ItemDesc.getContextVar_charId(charId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(ItemDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Item'"); return; } @@ -1288,7 +1288,7 @@ void _log_Item_UpdateQuantity(INVENTORIES::TItemId itemId, uint32 quantity, uint NLMISC::CEntityId charId; if (!ItemDesc.getContextVar_charId(charId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(ItemDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Item'"); return; } @@ -1325,7 +1325,7 @@ void _log_Item_Move(INVENTORIES::TItemId itemId, INVENTORIES::TInventory srcInve NLMISC::CEntityId charId; if (!ItemDesc.getContextVar_charId(charId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(ItemDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Item'"); return; } @@ -1362,7 +1362,7 @@ void _log_Item_PutInSaleStore(INVENTORIES::TItemId itemId, const char *_filename NLMISC::CEntityId charId; if (!ItemDesc.getContextVar_charId(charId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(ItemDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Item'"); return; } @@ -1395,7 +1395,7 @@ void _log_Item_RemoveFromSaleStore(INVENTORIES::TItemId itemId, const char *_fil NLMISC::CEntityId charId; if (!ItemDesc.getContextVar_charId(charId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(ItemDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Item'"); return; } @@ -1428,7 +1428,7 @@ void _log_Item_Delete(INVENTORIES::TItemId itemId, const NLMISC::CSheetId &sheet NLMISC::CEntityId charId; if (!ItemDesc.getContextVar_charId(charId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(ItemDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Item'"); return; } @@ -1467,7 +1467,7 @@ void _log_Item_FailedAddBoughtItem(INVENTORIES::TItemId itemId, INVENTORIES::TIn NLMISC::CEntityId charId; if (!ItemDesc.getContextVar_charId(charId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(ItemDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Item'"); return; } @@ -1502,7 +1502,7 @@ void _log_Item_Money(uint64 moneyBefore, uint64 moneyAfter, const char *_filenam NLMISC::CEntityId charId; if (!ItemDesc.getContextVar_charId(charId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(ItemDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Item'"); return; } @@ -1537,7 +1537,7 @@ void _log_Item_ExchangeWithChar(const char *_filename_, uint _lineNo_) NLMISC::CEntityId validatorCharId; if (!ItemDesc.getContextVar_validatorCharId(validatorCharId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(ItemDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Item'"); return; } @@ -1549,7 +1549,7 @@ void _log_Item_ExchangeWithChar(const char *_filename_, uint _lineNo_) NLMISC::CEntityId otherEntityId; if (!ItemDesc.getContextVar_otherEntityId(otherEntityId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(ItemDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Item'"); return; } @@ -1580,7 +1580,7 @@ void _log_Item_ExchangeWithNPC(const char *_filename_, uint _lineNo_) NLMISC::CEntityId validatorCharId; if (!ItemDesc.getContextVar_validatorCharId(validatorCharId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(ItemDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Item'"); return; } @@ -1592,7 +1592,7 @@ void _log_Item_ExchangeWithNPC(const char *_filename_, uint _lineNo_) NLMISC::CEntityId otherEntityId; if (!ItemDesc.getContextVar_otherEntityId(otherEntityId)) { - // If this bomb is thrown, you need to add a log context (or eventualy a 'noContext'). + // If this bomb is thrown, you need to add a log context (or otherwise a 'noContext'). STOP_IF(ItemDesc.getNoContextCount() == 0, _filename_<<"("<<_lineNo_<<") : Missing log context for log 'Item'"); return; }