mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 03:09:13 +00:00
Convert SDL (mostly) to plStrings
This commit is contained in:
@ -110,7 +110,7 @@ void plSDLModifier::ISendNetMsg(plStateDataRecord*& state, plKey senderKey, uint
|
||||
bool plSDLModifier::MsgReceive(plMessage* msg)
|
||||
{
|
||||
plSDLModifierMsg* sdlMsg = plSDLModifierMsg::ConvertNoRef(msg);
|
||||
if (sdlMsg && !stricmp(sdlMsg->GetSDLName(),GetSDLName()))
|
||||
if (sdlMsg && !sdlMsg->GetSDLName().CompareI(GetSDLName()))
|
||||
{
|
||||
uint32_t sendFlags = IApplyModFlags(sdlMsg->GetFlags());
|
||||
|
||||
@ -229,7 +229,7 @@ void plSDLModifier::ReceiveState(const plStateDataRecord* srcState)
|
||||
plNetObjectDebugger::GetInstance()->SetDebugging(false);
|
||||
}
|
||||
|
||||
void plSDLModifier::AddNotifyForVar(plKey key, const char* varName, float tolerance) const
|
||||
void plSDLModifier::AddNotifyForVar(plKey key, const plString& varName, float tolerance) const
|
||||
{
|
||||
// create a SDL notifier object
|
||||
plStateChangeNotifier notifier(tolerance, key);
|
||||
|
@ -80,7 +80,7 @@ public:
|
||||
plStateDataRecord* GetStateCache() const { return fStateCache; }
|
||||
virtual void AddTarget(plSceneObject* so);
|
||||
|
||||
void AddNotifyForVar(plKey key, const char* varName, float tolerance) const;
|
||||
void AddNotifyForVar(plKey key, const plString& varName, float tolerance) const;
|
||||
};
|
||||
|
||||
#endif // plSDLModifier_inc
|
||||
|
Reference in New Issue
Block a user