Skip to content

Commit 6ff3516

Browse files
committed
Update SolidWaveTrail.cpp
1 parent a1604ad commit 6ff3516

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/Hacks/SolidWaveTrail.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ Module* solidWave = nullptr;
99

1010
class $modify (CCDrawNode)
1111
{
12-
bool drawPolygon(CCPoint *verts, unsigned int count, const ccColor4F &fillColor, float borderWidth, const ccColor4F &borderColor)
12+
bool
13+
drawPolygon(CCPoint *verts, unsigned int count, const ccColor4F &fillColor, float borderWidth, const ccColor4F &borderColor)
1314
{
1415
if (typeinfo_cast<HardStreak*>(this))
1516
{
@@ -37,11 +38,11 @@ class $modify (CCDrawNode)
3738
}
3839
}
3940

40-
bool v = CCDrawNode::drawPolygon(verts, count, fillColor, borderWidth, borderColor);
41-
42-
if (!v)
43-
return false;
44-
41+
#ifdef GEODE_IS_MACOS
42+
CCDrawNode::drawPolygon(verts, count, fillColor, borderWidth, borderColor);
4543
return true;
44+
#else
45+
return CCDrawNode::drawPolygon(verts, count, fillColor, borderWidth, borderColor);
46+
#endif
4647
}
4748
};

0 commit comments

Comments
 (0)