Core/SAI: Add a 4th target parameter to SAI

(cherry picked from commit 7634a57f64a38e1151d648eeacae8480c83d19df)
This commit is contained in:
jackpoz
2021-11-10 00:11:52 +01:00
committed by Shauren
parent 910a00bb1e
commit 4fabfa0903
6 changed files with 38 additions and 33 deletions
@@ -313,10 +313,11 @@ void SmartAIMgr::LoadSmartAIFromDB()
temp.target.raw.param1 = fields[22].GetUInt32();
temp.target.raw.param2 = fields[23].GetUInt32();
temp.target.raw.param3 = fields[24].GetUInt32();
temp.target.x = fields[25].GetFloat();
temp.target.y = fields[26].GetFloat();
temp.target.z = fields[27].GetFloat();
temp.target.o = fields[28].GetFloat();
temp.target.raw.param4 = fields[25].GetUInt32();
temp.target.x = fields[26].GetFloat();
temp.target.y = fields[27].GetFloat();
temp.target.z = fields[28].GetFloat();
temp.target.o = fields[29].GetFloat();
//check target
if (!IsTargetValid(temp))