We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4279461 commit da8fdceCopy full SHA for da8fdce
src/xrGame/GameObject.cpp
@@ -114,8 +114,11 @@ void CGameObject::MakeMeCrow()
114
u32 const object_frame_id = dwFrame_AsCrow;
115
#ifndef LINUX // FIXME!!!
116
if ((u32)_InterlockedCompareExchange((long*)&dwFrame_AsCrow, device_frame_id, object_frame_id) == device_frame_id)
117
- return;
+#else
118
+ if (__sync_val_compare_and_swap((long*)&dwFrame_AsCrow, object_frame_id, device_frame_id) == device_frame_id)
119
#endif
120
+ return;
121
+
122
VERIFY(dwFrame_AsCrow == device_frame_id);
123
Props.crow = 1;
124
g_pGameLevel->Objects.o_crow(this);
0 commit comments