Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sora-yx committed Oct 7, 2023
1 parent 8d583d8 commit ea65481
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions FT-Super-Sonic/BlackboardHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ class BlackboardHelper
if (!status)
return false;

Blackboardstatus* fucked = (Blackboardstatus*)status;
PrintInfo("World Flag: %d\n", fucked->WorldFlags);
return _bittest64(&fucked->WorldFlags, in_flags);
Blackboardstatus* status_ = (Blackboardstatus*)status; //use regular C struct instead of the class version, because struct alignement can go to hell.
//PrintInfo("World Flag: %d\n", fucked->WorldFlags);
return _bittest64(&status_->WorldFlags, in_flags);
}

inline static bool IsAirBoosting()
Expand Down
6 changes: 3 additions & 3 deletions FT-Super-Sonic/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ __int64* MsgPtr = nullptr;
enum msg
{
MsgBegingTalkNpc = 8271,
MsgBeginTalkNpc2 = 8666,
//MsgBeginTalkNpc2 = 8666,
MsgTransitCyberStage = 9080,
MsgTransitHacking = 9083,
MsgTransitIsland,
Expand Down Expand Up @@ -120,10 +120,10 @@ HOOK(__int64, __fastcall, SetNewMSG_r, sigSetNewMsg(), __int64* a1, __int64 msgI
{
if (!isValid(msgID))
{
PrintInfo("New msg ID: %d\n", msgID);
//PrintInfo("New msg ID: %d\n", msgID);
}

if (msgID == MsgBegingTalkNpc || msgID == MsgBeginTalkNpc2)
if (msgID == MsgBegingTalkNpc)
{
if (isSuper)
ForceUnTransfo(false);
Expand Down

0 comments on commit ea65481

Please sign in to comment.