Skip to content

Commit

Permalink
Make compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhobean committed Jan 28, 2025
1 parent d378993 commit 5173a22
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
10 changes: 8 additions & 2 deletions src/common/version/GitRevision.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
#define __GITHASH__ "f24687c5330f8fbf7b7ae9f626447fc91e280d77"
#define __GITREVISION__ 3473
#ifndef _INC_GITREVISION_H
#define _INC_GITREVISION_H

#define __GITHASH__ "d37899393226f982da3c8d1da45efadf2f7b39b2"
#define __GITREVISION__ 3931
#define __GITBRANCH__ "Resistance_TicFix"

#endif // _INC_GITREVISION_H
2 changes: 1 addition & 1 deletion src/game/CTimedObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void CTimedObject::_SetTimeout(int64 iDelayInMsecs)
{
ADDTOCALLSTACK_DEBUG("CTimedObject::_SetTimeout");
// Assume we have the mutex already locked here
g_Log.EventDebug("[%p] _SetTimeout to %" PRId64 ".\n", (void*)this, iDelayInMsecs);
//g_Log.EventDebug("[%p] _SetTimeout to %" PRId64 ".\n", (void*)this, iDelayInMsecs);

const ProfileTask timersTask(PROFILE_TIMERS); // profile the settimeout proccess.
if (_IsDeleted()) //prevent deleted objects from setting new timers to avoid nullptr calls
Expand Down
2 changes: 1 addition & 1 deletion src/game/chars/CCharAct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5496,7 +5496,7 @@ void CChar::SetTriggerActive(lpctstr trig)
// 4) CHARDEF
// 5) EVENTSPET/EVENTSPLAYER set on .ini file
// RETURNS = TRIGRET_TYPE (in cscriptobj.h)
TRIGRET_TYPE CChar::OnTrigger( lpctstr pszTrigName, CTextConsole * pSrc, CScriptTriggerArgs * pArgs )
TRIGRET_TYPE CChar:: OnTrigger( lpctstr pszTrigName, CTextConsole * pSrc, CScriptTriggerArgs * pArgs )
{
ADDTOCALLSTACK("CChar::OnTrigger");

Expand Down
6 changes: 4 additions & 2 deletions src/network/send.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2658,19 +2658,21 @@ PacketPaperdoll::PacketPaperdoll(const CClient* target, CChar* character) : Pack
bool bCustomName = 0;
CSString sShowName;


CChar* TargetCharacter = const_cast <CChar*>(target->GetChar()); //TRÈS DANGEREUX ICI. On prend un const qu'on modifie a ne plus l'être
if (IsTrigUsed(TRIGGER_DISPLAYNAME) && (target->GetChar() != character)) //Avoid launch trigger if the target is the same character
{
CScriptTriggerArgs args;
args.m_s1 = character->GetName();
args.m_iN1 = 1;//Trigger use on paperdoll
if (character->OnTrigger(CTRIG_DisplayName, target->GetChar(), &args) == TRIGRET_RET_TRUE)
if (character->OnTrigger(CTRIG_DisplayName, TargetCharacter, &args) == TRIGRET_RET_TRUE)
{
bCustomName = 1;
sShowName = args.m_s1;
}
}



if (character->IsStatFlag(STATF_INCOGNITO))
{
writeStringFixedASCII(character->GetName(), 60);
Expand Down

0 comments on commit 5173a22

Please sign in to comment.