Merge with develop
--HG-- branch : compatibility-develop
This commit is contained in:
commit
11c0a073ed
9 changed files with 12 additions and 8 deletions
|
@ -953,7 +953,6 @@ namespace NLGUI
|
||||||
maxPos = _CursorPos;
|
maxPos = _CursorPos;
|
||||||
}
|
}
|
||||||
|
|
||||||
nlinfo("%d, %d", minPos, maxPos);
|
|
||||||
if (replace)
|
if (replace)
|
||||||
{
|
{
|
||||||
_InputString = _InputString.substr(0, minPos) + toAdd + _InputString.substr(maxPos);
|
_InputString = _InputString.substr(0, minPos) + toAdd + _InputString.substr(maxPos);
|
||||||
|
|
|
@ -186,7 +186,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
if (hasAlpha && bitmap.isAlphaUniform(&alpha))
|
if (hasAlpha && bitmap.isAlphaUniform(&alpha))
|
||||||
{
|
{
|
||||||
std::cout << InputFilenames[i] << " (image with uniform alpha channel " << alpha << ")" << std::endl;
|
std::cout << InputFilenames[i] << " (image with uniform alpha channel " << (sint)alpha << ")" << std::endl;
|
||||||
|
|
||||||
if (FixAlpha && (alpha == 0 || alpha == 255))
|
if (FixAlpha && (alpha == 0 || alpha == 255))
|
||||||
{
|
{
|
||||||
|
|
|
@ -513,7 +513,7 @@ int main(int argc, char **argv)
|
||||||
std::string::size_type pos = inputFileName.rfind(".");
|
std::string::size_type pos = inputFileName.rfind(".");
|
||||||
if (pos == std::string::npos)
|
if (pos == std::string::npos)
|
||||||
{
|
{
|
||||||
// name whithout extension
|
// name without extension
|
||||||
userColorFileName = inputFileName + "_usercolor";
|
userColorFileName = inputFileName + "_usercolor";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -502,6 +502,7 @@ CClientConfig::CClientConfig()
|
||||||
|
|
||||||
Sleep = -1; // Default : client does not sleep.
|
Sleep = -1; // Default : client does not sleep.
|
||||||
ProcessPriority = 0; // Default : NORMAL
|
ProcessPriority = 0; // Default : NORMAL
|
||||||
|
CPUMask = 0; // Default : auto detection
|
||||||
ShowPath = false; // Default : do not display the path.
|
ShowPath = false; // Default : do not display the path.
|
||||||
DrawBoxes = false; // Default : Do not draw the selection.
|
DrawBoxes = false; // Default : Do not draw the selection.
|
||||||
|
|
||||||
|
@ -1476,6 +1477,8 @@ void CClientConfig::setValues()
|
||||||
READ_INT_FV(Sleep)
|
READ_INT_FV(Sleep)
|
||||||
// ProcessPriority
|
// ProcessPriority
|
||||||
READ_INT_FV(ProcessPriority)
|
READ_INT_FV(ProcessPriority)
|
||||||
|
// CPUMask
|
||||||
|
READ_INT_FV(CPUMask)
|
||||||
// ShowPath : Get the ShowPath value.
|
// ShowPath : Get the ShowPath value.
|
||||||
READ_BOOL_DEV(ShowPath)
|
READ_BOOL_DEV(ShowPath)
|
||||||
// UserSheet : Get the sheet to used for the use rin Local mode.
|
// UserSheet : Get the sheet to used for the use rin Local mode.
|
||||||
|
|
|
@ -421,6 +421,8 @@ struct CClientConfig
|
||||||
sint Sleep;
|
sint Sleep;
|
||||||
/// Force process priority
|
/// Force process priority
|
||||||
sint ProcessPriority;
|
sint ProcessPriority;
|
||||||
|
/// CPU Mask
|
||||||
|
sint CPUMask;
|
||||||
// To show/hide the entities path
|
// To show/hide the entities path
|
||||||
bool ShowPath;
|
bool ShowPath;
|
||||||
/// Draw the Boxes used for the selection.
|
/// Draw the Boxes used for the selection.
|
||||||
|
|
|
@ -705,7 +705,7 @@ sint32 CFameInterface::getFameIndexed(const CEntityId &entityId, uint32 factionI
|
||||||
if (!returnUnknownValue && fame == NO_FAME)
|
if (!returnUnknownValue && fame == NO_FAME)
|
||||||
fame = 0;
|
fame = 0;
|
||||||
|
|
||||||
return sint32(fame);
|
return fame;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -143,7 +143,7 @@ public:
|
||||||
// Fame system
|
// Fame system
|
||||||
// These take clans as parameters, restricted by call.
|
// These take clans as parameters, restricted by call.
|
||||||
// These return the proper fame values, or NO_FAME if there's an error.
|
// These return the proper fame values, or NO_FAME if there's an error.
|
||||||
// - GgtStartFame: playerClan must be a Civilization, targetClan must be any non-neutral clan
|
// - getStartFame: playerClan must be a Civilization, targetClan must be any non-neutral clan
|
||||||
sint32 getStartFame(PVP_CLAN::TPVPClan playerClan, PVP_CLAN::TPVPClan targetClan);
|
sint32 getStartFame(PVP_CLAN::TPVPClan playerClan, PVP_CLAN::TPVPClan targetClan);
|
||||||
// - getMaxFameByClan: playerClan must be Neutral or the same type (Cult or Clan) as targetClan,
|
// - getMaxFameByClan: playerClan must be Neutral or the same type (Cult or Clan) as targetClan,
|
||||||
// targetClan must be any non-neutral clan.
|
// targetClan must be any non-neutral clan.
|
||||||
|
|
|
@ -339,7 +339,7 @@ void CGuildMemberModule::_inviteCharacterInGuild(CGuildCharProxy& invitor, CGuil
|
||||||
SM_STATIC_PARAMS_2( params, STRING_MANAGER::player, STRING_MANAGER::faction );
|
SM_STATIC_PARAMS_2( params, STRING_MANAGER::player, STRING_MANAGER::faction );
|
||||||
params[0].setEIdAIAlias( target.getId(), CAIAliasTranslator::getInstance()->getAIAlias( target.getId()) );
|
params[0].setEIdAIAlias( target.getId(), CAIAliasTranslator::getInstance()->getAIAlias( target.getId()) );
|
||||||
params[1].Enum = PVP_CLAN::getFactionIndex(invitedAllegiance.first);
|
params[1].Enum = PVP_CLAN::getFactionIndex(invitedAllegiance.first);
|
||||||
invitor.sendSystemMessage("GUILD_ICOMPATIBLE_ALLEGIANCE",params);
|
invitor.sendSystemMessage("GUILD_INCOMPATIBLE_ALLEGIANCE",params);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -348,7 +348,7 @@ void CGuildMemberModule::_inviteCharacterInGuild(CGuildCharProxy& invitor, CGuil
|
||||||
SM_STATIC_PARAMS_2( params, STRING_MANAGER::player, STRING_MANAGER::faction );
|
SM_STATIC_PARAMS_2( params, STRING_MANAGER::player, STRING_MANAGER::faction );
|
||||||
params[0].setEIdAIAlias( target.getId(), CAIAliasTranslator::getInstance()->getAIAlias( target.getId()) );
|
params[0].setEIdAIAlias( target.getId(), CAIAliasTranslator::getInstance()->getAIAlias( target.getId()) );
|
||||||
params[1].Enum = PVP_CLAN::getFactionIndex(invitedAllegiance.second);
|
params[1].Enum = PVP_CLAN::getFactionIndex(invitedAllegiance.second);
|
||||||
invitor.sendSystemMessage("GUILD_ICOMPATIBLE_ALLEGIANCE",params);
|
invitor.sendSystemMessage("GUILD_INCOMPATIBLE_ALLEGIANCE",params);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ extern void flushMessagesToSend();
|
||||||
void cbGwTrDisconnection ( TClientId clientId );
|
void cbGwTrDisconnection ( TClientId clientId );
|
||||||
|
|
||||||
|
|
||||||
extern CVariable<string> SaveShardRoot;
|
extern CVariable<string> SaveShardRootGameShare;
|
||||||
extern CVariable<bool> VerboseFEStatsTime;
|
extern CVariable<bool> VerboseFEStatsTime;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue