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 edda2df commit 6f7e9fcCopy full SHA for 6f7e9fc
MTA10_Server/mods/deathmatch/logic/luadefs/CLuaElementDefs.cpp
@@ -1636,8 +1636,10 @@ int CLuaElementDefs::setElementPosition ( lua_State* luaVM )
1636
if ( !argStream.HasErrors () && pElement->GetType () == CElement::RADAR_AREA )
1637
{
1638
// radar areas only take x and y
1639
- argStream.ReadNumber ( vecPosition.fX );
1640
- argStream.ReadNumber ( vecPosition.fY );
+ CVector2D vecRadarPos;
+ argStream.ReadVector2D ( vecRadarPos );
1641
+ vecPosition.fX = vecRadarPos.fX;
1642
+ vecPosition.fY = vecRadarPos.fY;
1643
}
1644
else
1645
0 commit comments