Changed: Typo fixes (thanks to Vagrant!)

hg/feature/gsoc2013-dfighter
kervala 12 years ago
parent 3416ec2824
commit 6e498aefad

@ -188,7 +188,7 @@ public:
* \warning: Only syntax is checked. It doesn't check that a register has been initialised before use. * \warning: Only syntax is checked. It doesn't check that a register has been initialised before use.
* \param src The input text of a vertex program, in OpenGL format. * \param src The input text of a vertex program, in OpenGL format.
* \param result The result program. * \param result The result program.
* \param errorOuput If parsing failed, contains the reason * \param errorOutput If parsing failed, contains the reason
* \result true if the parsing succeeded * \result true if the parsing succeeded
*/ */
bool parse(const char *src, TProgram &result, std::string &errorOutput); bool parse(const char *src, TProgram &result, std::string &errorOutput);

@ -173,7 +173,7 @@ void CParticleSystemShape::serial(NLMISC::IStream &f) throw(NLMISC::EStream)
///=========================================================================== ///===========================================================================
void CParticleSystemShape::buildFromPS(const CParticleSystem &ps) void CParticleSystemShape::buildFromPS(const CParticleSystem &ps)
{ {
// must be sure that we are writting in the stream // must be sure that we are writing in the stream
if (_ParticleSystemProto.isReading()) if (_ParticleSystemProto.isReading())
{ {
_ParticleSystemProto.invert(); _ParticleSystemProto.invert();

@ -1774,7 +1774,7 @@ void CTessFace::refineAll()
/* /*
if(ps<RefineThreshold), the face must be merged (ie have no leaves). if(ps<RefineThreshold), the face must be merged (ie have no leaves).
if(ps E [RefineThreshold, RefineTreshold*2]), the face must be splitted (ave leaves), and is geomorphed. if(ps E [RefineThreshold, RefineThreshold*2]), the face must be splitted (ave leaves), and is geomorphed.
if(ps>RefineThreshold*2), the face is fully splitted/geomoprhed (tests reported on sons...). if(ps>RefineThreshold*2), the face is fully splitted/geomoprhed (tests reported on sons...).
*/ */
@ -1831,7 +1831,7 @@ void CTessFace::refineAll()
// Split or merge, and meaning of errorMetric: // Split or merge, and meaning of errorMetric:
/* /*
if(errorMetric<RefineThreshold), the face must be merged (ie have no leaves). if(errorMetric<RefineThreshold), the face must be merged (ie have no leaves).
if(errorMetric E [RefineThreshold, RefineTreshold*2]), the face must be splitted (ave leaves), and is geomorphed. if(errorMetric E [RefineThreshold, RefineThreshold*2]), the face must be splitted (ave leaves), and is geomorphed.
if(errorMetric>RefineThreshold*2), the face is fully splitted/geomoprhed. if(errorMetric>RefineThreshold*2), the face is fully splitted/geomoprhed.
*/ */

@ -64,8 +64,8 @@ CLocatedBindablePage::CLocatedBindablePage(QWidget *parent)
_ui.blurCoeffWidget->setWrapper(&_MotionBlurCoeffWrapper); _ui.blurCoeffWidget->setWrapper(&_MotionBlurCoeffWrapper);
// Fake motion blur threshold // Fake motion blur threshold
_ui.blurTresholdWidget->setRange(0.0, 5.0); _ui.blurThresholdWidget->setRange(0.0, 5.0);
_ui.blurTresholdWidget->setWrapper(&_MotionBlurThresholdWrapper); _ui.blurThresholdWidget->setWrapper(&_MotionBlurThresholdWrapper);
// Shock wave radius cut // Shock wave radius cut
_ui.radiusCutWidget->setRange(0, 1); _ui.radiusCutWidget->setRange(0, 1);
@ -275,7 +275,7 @@ void CLocatedBindablePage::setEditedItem(CWorkspaceNode *ownerNode, NL3D::CPSLoc
_MotionBlurThresholdWrapper.P = fla; _MotionBlurThresholdWrapper.P = fla;
_MotionBlurThresholdWrapper.OwnerNode = _Node; _MotionBlurThresholdWrapper.OwnerNode = _Node;
_ui.blurTresholdWidget->updateUi(); _ui.blurThresholdWidget->updateUi();
_ui.zalignCheckBox->show(); _ui.zalignCheckBox->show();
_ui.alignCheckBox->show(); _ui.alignCheckBox->show();
@ -633,7 +633,7 @@ void CLocatedBindablePage::updateValidWidgetForAlignOnMotion(bool align)
_ui.blurCoeffLabel->setEnabled(align); _ui.blurCoeffLabel->setEnabled(align);
_ui.blurCoeffWidget->setEnabled(align); _ui.blurCoeffWidget->setEnabled(align);
_ui.blurTreshholdLabel->setEnabled(align); _ui.blurTreshholdLabel->setEnabled(align);
_ui.blurTresholdWidget->setEnabled(align); _ui.blurThresholdWidget->setEnabled(align);
_ui.zalignCheckBox->setEnabled(align); _ui.zalignCheckBox->setEnabled(align);
} }

@ -121,7 +121,7 @@ BEGIN
8 8
PUSHBUTTON "Interrupt",IDC_BUTTONCANCEL,129,23,50,14,BS_NOTIFY PUSHBUTTON "Interrupt",IDC_BUTTONCANCEL,129,23,50,14,BS_NOTIFY
LTEXT "Object progression",IDC_STATIC,7,28,79,8 LTEXT "Object progression",IDC_STATIC,7,28,79,8
LTEXT "Lightmaps Informations...",IDC_STATICINFO,7,60,172,114 LTEXT "Lightmaps Information...",IDC_STATICINFO,7,60,172,114
END END
IDD_LOD DIALOG DISCARDABLE 0, 0, 360, 200 IDD_LOD DIALOG DISCARDABLE 0, 0, 360, 200

@ -205,7 +205,7 @@ uint32 LastPing = 0; // contains the date of the last ping sent to the services
// Alarms // Alarms
// //
void sendInformations(TServiceId sid) void sendInformation(TServiceId sid)
{ {
CMessage msgout("INFO"); CMessage msgout("INFO");
msgout.serialCont(AllAdminAlarms); msgout.serialCont(AllAdminAlarms);
@ -1195,7 +1195,7 @@ static void cbAESInfo(CMessage &msgin, const std::string &serviceName, TServiceI
{ {
if (Services[j].Connected) if (Services[j].Connected)
{ {
sendInformations(Services[j].ServiceId); sendInformation(Services[j].ServiceId);
} }
} }
} }
@ -1309,7 +1309,7 @@ void serviceConnection(const std::string &serviceName, TServiceId sid, void *arg
Services[sid.get()].init(serviceName, sid); Services[sid.get()].init(serviceName, sid);
sendInformations(sid); sendInformation(sid);
nlinfo("%s-%hu connected", Services[sid.get()].ShortName.c_str(), Services[sid.get()].ServiceId.get()); nlinfo("%s-%hu connected", Services[sid.get()].ShortName.c_str(), Services[sid.get()].ServiceId.get());

@ -90,9 +90,9 @@
inherit_gc_alpha="#inherit_gc_alpha" /> inherit_gc_alpha="#inherit_gc_alpha" />
</group> </group>
</template> </template>
<!-- ************************************ --> <!-- *********************************** -->
<!-- * TEMPLATE FOR SCENE INFORMATIONS * --> <!-- * TEMPLATE FOR SCENE INFORMATION * -->
<!-- ************************************ --> <!-- *********************************** -->
<!-- * In scene user info with guild logo * --> <!-- * In scene user info with guild logo * -->
<define id="in_scene_user_info_bar_h" <define id="in_scene_user_info_bar_h"
value="4" /> value="4" />

@ -3345,7 +3345,7 @@ void CCharacterCL::showOrHideBodyParts( bool objectsVisible )
{ {
// Right Hand // Right Hand
if(rHandInstIdx<_Instances.size()) if(rHandInstIdx<_Instances.size())
if( !(_Items[rHandInstIdx].Sheet && _Items[rHandInstIdx].Sheet->NeverHideWhenEquiped ) ) if( !(_Items[rHandInstIdx].Sheet && _Items[rHandInstIdx].Sheet->NeverHideWhenEquipped ) )
if(!_Instances[rHandInstIdx].Current.empty()) if(!_Instances[rHandInstIdx].Current.empty())
{ {
_Instances[rHandInstIdx].Current.hide(); _Instances[rHandInstIdx].Current.hide();
@ -3353,7 +3353,7 @@ void CCharacterCL::showOrHideBodyParts( bool objectsVisible )
} }
// Left Hand // Left Hand
if(lHandInstIdx <_Instances.size()) if(lHandInstIdx <_Instances.size())
if( !(_Items[lHandInstIdx].Sheet && _Items[lHandInstIdx].Sheet->NeverHideWhenEquiped ) ) if( !(_Items[lHandInstIdx].Sheet && _Items[lHandInstIdx].Sheet->NeverHideWhenEquipped ) )
if(!_Instances[lHandInstIdx].Current.empty()) if(!_Instances[lHandInstIdx].Current.empty())
{ {
_Instances[lHandInstIdx].Current.hide(); _Instances[lHandInstIdx].Current.hide();

@ -100,7 +100,7 @@ CItemSheet::CItemSheet()
Type = CEntitySheet::ITEM; Type = CEntitySheet::ITEM;
Bulk= 0.f; Bulk= 0.f;
EquipTime= 0; EquipTime= 0;
NeverHideWhenEquiped = false; NeverHideWhenEquipped = false;
RequiredCharac = CHARACTERISTICS::Unknown; RequiredCharac = CHARACTERISTICS::Unknown;
RequiredCharacLevel = 0; RequiredCharacLevel = 0;
RequiredSkill = SKILLS::unknown; RequiredSkill = SKILLS::unknown;
@ -214,8 +214,8 @@ void CItemSheet::build(const NLGEORGES::UFormElm &item)
IconText = strlwr (IconText); IconText = strlwr (IconText);
IdIconText = ClientSheetsStrings.add(IconText); IdIconText = ClientSheetsStrings.add(IconText);
// See if this item can be hiden when equiped // See if this item can be hiden when equipped
if(!item.getValueByName (NeverHideWhenEquiped, "3d.never hide when equiped")) if(!item.getValueByName (NeverHideWhenEquipped, "3d.never hide when equiped"))
debug("key '3d.never hide when equiped."); debug("key '3d.never hide when equiped.");
// Load the different slot in wicth the item can be equipped. // Load the different slot in wicth the item can be equipped.
@ -633,7 +633,7 @@ void CItemSheet::serial(class NLMISC::IStream &f) throw(NLMISC::EStream)
f.serial(HasFx); // Serialize the has fx. f.serial(HasFx); // Serialize the has fx.
f.serial(DropOrSell); f.serial(DropOrSell);
f.serial(IsItemNoRent); f.serial(IsItemNoRent);
f.serial(NeverHideWhenEquiped); f.serial(NeverHideWhenEquipped);
f.serial(Stackable); f.serial(Stackable);
f.serial(IsConsumable); f.serial(IsConsumable);
f.serial(Bulk); f.serial(Bulk);

@ -330,7 +330,7 @@ public:
/// Equip Time /// Equip Time
uint32 EquipTime; uint32 EquipTime;
/// true if this item can be hidden when equipped /// true if this item can be hidden when equipped
bool NeverHideWhenEquiped; bool NeverHideWhenEquipped;
// FX // FX
CItemFXSheet FX; CItemFXSheet FX;

@ -108,12 +108,12 @@ void cbClientItemEquip( NLNET::CMessage& msgin, const std::string &serviceName,
{ {
H_AUTO(cbClientItemEquip); H_AUTO(cbClientItemEquip);
uint16 equipedInventory, equipedSlot, bagSlot; uint16 equippedInventory, equippedSlot, bagSlot;
CEntityId id; CEntityId id;
msgin.serial( id ); msgin.serial( id );
msgin.serial( equipedInventory ); msgin.serial( equippedInventory );
msgin.serial( equipedSlot ); msgin.serial( equippedSlot );
msgin.serial( bagSlot ); msgin.serial( bagSlot );
CCharacter *c = (CCharacter * ) CEntityBaseManager::getEntityBasePtr( id ); CCharacter *c = (CCharacter * ) CEntityBaseManager::getEntityBasePtr( id );
@ -125,7 +125,7 @@ void cbClientItemEquip( NLNET::CMessage& msgin, const std::string &serviceName,
// if player is stunned or dead cancel action // if player is stunned or dead cancel action
if (c->isDead() || c->isStunned()) if (c->isDead() || c->isStunned())
return; return;
c->equipCharacter( INVENTORIES::TInventory(equipedInventory), equipedSlot, bagSlot, true ); c->equipCharacter( INVENTORIES::TInventory(equippedInventory), equippedSlot, bagSlot, true );
} }
} }
@ -134,12 +134,12 @@ void cbClientItemUnequip( NLNET::CMessage& msgin, const std::string &serviceName
{ {
H_AUTO(cbClientItemUnequip); H_AUTO(cbClientItemUnequip);
uint16 equipedInventory, equipedSlot; uint16 equippedInventory, equippedSlot;
CEntityId id; CEntityId id;
msgin.serial( id ); msgin.serial( id );
msgin.serial( equipedInventory ); msgin.serial( equippedInventory );
msgin.serial( equipedSlot ); msgin.serial( equippedSlot );
CCharacter *c = (CCharacter * ) CEntityBaseManager::getEntityBasePtr( id ); CCharacter *c = (CCharacter * ) CEntityBaseManager::getEntityBasePtr( id );
if( c ) if( c )
@ -151,7 +151,7 @@ void cbClientItemUnequip( NLNET::CMessage& msgin, const std::string &serviceName
if (c->isDead() || c->isStunned()) if (c->isDead() || c->isStunned())
return; return;
c->unequipCharacter( INVENTORIES::TInventory(equipedInventory), equipedSlot, true ); c->unequipCharacter( INVENTORIES::TInventory(equippedInventory), equippedSlot, true );
} }
} }

@ -251,7 +251,7 @@ CCharacterBotChatBeginEnd CharacterBotChatBeginEnd;
CCharacterDynChatBeginEnd CharacterDynChatBeginEnd; CCharacterDynChatBeginEnd CharacterDynChatBeginEnd;
//*** Removed by Sadge *** //*** Removed by Sadge ***
//// Transport class for EGS asking information about creatures/Npc //// Transport class for EGS asking information about creatures/Npc
//CCreatureAskInformationMsg CreatureNpcInformations; //CCreatureAskInformationMsg CreatureNpcInformation;
//*** *** //*** ***
// Transport class sent to AIS to set bot mode as death. // Transport class sent to AIS to set bot mode as death.
CBSAIDeathReport BotDeathReport; CBSAIDeathReport BotDeathReport;

@ -1344,7 +1344,7 @@ sint32 CFameManager::getMaxFameByFactionIndex(std::pair<PVP_CLAN::TPVPClan, PVP_
else else
{ {
// get correct index in tribe list // get correct index in tribe list
initTribeTresholdIndex(); initTribeThresholdIndex();
uint32 ttIndex= ~0; uint32 ttIndex= ~0;
if(factionIndex<_FactionIndexToTribeThresholdIndex.size()) if(factionIndex<_FactionIndexToTribeThresholdIndex.size())
ttIndex= _FactionIndexToTribeThresholdIndex[factionIndex]; ttIndex= _FactionIndexToTribeThresholdIndex[factionIndex];
@ -1395,7 +1395,7 @@ sint32 CFameManager::getMaxFameByFactionIndex(std::pair<PVP_CLAN::TPVPClan, PVP_
} }
} }
void CFameManager::doInitTribeTresholdIndex() void CFameManager::doInitTribeThresholdIndex()
{ {
CStaticFames &sf= CStaticFames::getInstance(); CStaticFames &sf= CStaticFames::getInstance();
_FactionIndexToTribeThresholdIndex.clear(); _FactionIndexToTribeThresholdIndex.clear();

@ -257,12 +257,12 @@ private:
/// For Tribes Threshold. FactionIndex to TribeIndex /// For Tribes Threshold. FactionIndex to TribeIndex
std::vector<uint32> _FactionIndexToTribeThresholdIndex; std::vector<uint32> _FactionIndexToTribeThresholdIndex;
// :OPTIM: init/doInit is dual to inline the _FactionIndexToTribeThresholdIndex.empty() test // :OPTIM: init/doInit is dual to inline the _FactionIndexToTribeThresholdIndex.empty() test
void initTribeTresholdIndex() void initTribeThresholdIndex()
{ {
if(_FactionIndexToTribeThresholdIndex.empty()) if(_FactionIndexToTribeThresholdIndex.empty())
doInitTribeTresholdIndex(); doInitTribeThresholdIndex();
} }
void doInitTribeTresholdIndex(); void doInitTribeThresholdIndex();
// FameStart - starting values for fame, [player's group][target group] // FameStart - starting values for fame, [player's group][target group]
// - There are no None or Neutral clans for starting fame, so leave those out. // - There are no None or Neutral clans for starting fame, so leave those out.

@ -187,7 +187,7 @@ extern float CarriedItemsDecayRate;
extern uint8 TeamMembersStatusMaxValue; extern uint8 TeamMembersStatusMaxValue;
extern CCharacterBotChatBeginEnd CharacterBotChatBeginEnd; extern CCharacterBotChatBeginEnd CharacterBotChatBeginEnd;
//*** Removed by Sadge *** //*** Removed by Sadge ***
//extern CCreatureAskInformationMsg CreatureNpcInformations; //extern CCreatureAskInformationMsg CreatureNpcInformation;
//*** *** //*** ***
extern float MaxHarvestDistance; extern float MaxHarvestDistance;
extern float MaxMountDistance; extern float MaxMountDistance;
@ -3503,8 +3503,8 @@ void CCharacter::setTarget( const CEntityId &targetId, bool sendMessage )
//*** Removed by Sadge *** //*** Removed by Sadge ***
// // Ask information about target to AI service // // Ask information about target to AI service
// CreatureNpcInformations.Character.push_back( _EntityRowId ); // CreatureNpcInformation.Character.push_back( _EntityRowId );
// CreatureNpcInformations.Creature.push_back( target->getEntityRowId() ); // CreatureNpcInformation.Creature.push_back( target->getEntityRowId() );
//*** *** //*** ***
} }
else // target == NULL else // target == NULL
@ -7811,9 +7811,9 @@ void CCharacter::endHarvest(bool sendCloseTempImpulsion)
_HarvestOpened = false; _HarvestOpened = false;
_DepositSearchSkill = SKILLS::unknown; _DepositSearchSkill = SKILLS::unknown;
_MpIndex = 0xff; _MpIndex = 0xff;
_DepositHarvestInformations.DepositIndex = 0xffffffff; _DepositHarvestInformation.DepositIndex = 0xffffffff;
if ( _DepositHarvestInformations.Sheet != CSheetId::Unknown/*_DepositHarvestInformations.EndCherchingTime != 0xffffffff && _DepositHarvestInformations.EndCherchingTime > CTickEventHandler::getGameCycle()*/ ) if ( _DepositHarvestInformation.Sheet != CSheetId::Unknown/*_DepositHarvestInformation.EndCherchingTime != 0xffffffff && _DepositHarvestInformation.EndCherchingTime > CTickEventHandler::getGameCycle()*/ )
{ {
if ( sendCloseTempImpulsion ) if ( sendCloseTempImpulsion )
{ {
@ -14041,7 +14041,7 @@ bool CCharacter::pickUpRawMaterial( uint32 indexInTempInv, bool * lastMaterial )
} }
clearHarvestDB(); clearHarvestDB();
//CZoneManager::getInstance().removeRmFromDeposit( this, _DepositHarvestInformations.DepositIndex, _DepositHarvestInformations.DepositIndexContent,_HarvestedQuantity); //CZoneManager::getInstance().removeRmFromDeposit( this, _DepositHarvestInformation.DepositIndex, _DepositHarvestInformation.DepositIndexContent,_HarvestedQuantity);
} }
} }
} }

@ -3201,7 +3201,7 @@ private:
/// if harvesting a deposit, the skill used /// if harvesting a deposit, the skill used
SKILLS::ESkills _DepositSearchSkill; SKILLS::ESkills _DepositSearchSkill;
/// Harvest deposit information /// Harvest deposit information
HARVEST_INFOS::CHarvestInfos _DepositHarvestInformations; HARVEST_INFOS::CHarvestInfos _DepositHarvestInformation;
//@} //@}
/// the tick value of the nex decay of player items /// the tick value of the nex decay of player items

@ -168,7 +168,7 @@ inline uint16 CCharacter::harvestedMpQuantity() const
inline HARVEST_INFOS::CHarvestInfos& CCharacter::getHarvestInfos() inline HARVEST_INFOS::CHarvestInfos& CCharacter::getHarvestInfos()
{ {
return _DepositHarvestInformations; return _DepositHarvestInformation;
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------

@ -2127,8 +2127,8 @@ void CCharacter::clearTempInventory()
case TEMP_INV_MODE::Quarter: case TEMP_INV_MODE::Quarter:
case TEMP_INV_MODE::Harvest: case TEMP_INV_MODE::Harvest:
_DepositHarvestInformations.Sheet = CSheetId::Unknown; _DepositHarvestInformation.Sheet = CSheetId::Unknown;
_DepositHarvestInformations.EndCherchingTime = 0xffffffff; _DepositHarvestInformation.EndCherchingTime = 0xffffffff;
endHarvest(); endHarvest();
break; break;

@ -25,7 +25,7 @@ TARGET_LINK_LIBRARIES(ryzom_ios_service
nelgeorges nelgeorges
nelligo) nelligo)
NL_DEFAULT_PROPS(ryzom_ios_service "Ryzom, Services: Input Ouput Service (IOS)") NL_DEFAULT_PROPS(ryzom_ios_service "Ryzom, Services: Input Output Service (IOS)")
NL_ADD_RUNTIME_FLAGS(ryzom_ios_service) NL_ADD_RUNTIME_FLAGS(ryzom_ios_service)
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS}) ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})

@ -517,7 +517,7 @@ void CGeorgesImpl::MakeTyp( const std::string& filename, TType type, TUI ui, con
} }
catch (Exception &e) catch (Exception &e)
{ {
nlwarning ("Error during writting file '%s' : ", filename.c_str (), e.what ()); nlwarning ("Error during writing file '%s' : ", filename.c_str (), e.what ());
} }
} }
else else

@ -664,7 +664,7 @@ int makeStringDiff(int argc, char *argv[])
} }
else else
{ {
LOG("Writting difference file for %s.\n", Languages[l].c_str()); LOG("Writing difference file for %s.\n", Languages[l].c_str());
// build the diff file for each language. // build the diff file for each language.
ucstring str = prepareStringFile(diff, false); ucstring str = prepareStringFile(diff, false);
@ -1669,7 +1669,7 @@ int makeWorksheetDiff(int argc, char *argv[], const std::string &additionFilenam
} }
else else
{ {
LOG("Writting difference file for %s.\n", referenceFilename.c_str()); LOG("Writing difference file for %s.\n", referenceFilename.c_str());
// build the diff file for each language. // build the diff file for each language.
ucstring str = prepareExcelSheet(diff); ucstring str = prepareExcelSheet(diff);

Loading…
Cancel
Save