Skip to content

Commit ea65481

Browse files
committed
Cleanup
1 parent 8d583d8 commit ea65481

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

FT-Super-Sonic/BlackboardHelper.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ class BlackboardHelper
129129
if (!status)
130130
return false;
131131

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

137137
inline static bool IsAirBoosting()

FT-Super-Sonic/util.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ __int64* MsgPtr = nullptr;
1414
enum msg
1515
{
1616
MsgBegingTalkNpc = 8271,
17-
MsgBeginTalkNpc2 = 8666,
17+
//MsgBeginTalkNpc2 = 8666,
1818
MsgTransitCyberStage = 9080,
1919
MsgTransitHacking = 9083,
2020
MsgTransitIsland,
@@ -120,10 +120,10 @@ HOOK(__int64, __fastcall, SetNewMSG_r, sigSetNewMsg(), __int64* a1, __int64 msgI
120120
{
121121
if (!isValid(msgID))
122122
{
123-
PrintInfo("New msg ID: %d\n", msgID);
123+
//PrintInfo("New msg ID: %d\n", msgID);
124124
}
125125

126-
if (msgID == MsgBegingTalkNpc || msgID == MsgBeginTalkNpc2)
126+
if (msgID == MsgBegingTalkNpc)
127127
{
128128
if (isSuper)
129129
ForceUnTransfo(false);

0 commit comments

Comments
 (0)