• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

X operations(XOPS)に非常に近いFPSゲームを制作・リメイクし、成果物をオープンソースとして公開することを目的としたプロジェクトです。


Commit MetaInfo

Revision116 (tree)
Time2015-11-10 01:13:00
Authorxops-mikan

Log Message

コマンド(revive)で死亡したAIを復活・蘇生させた場合、追尾が正しく動作しないバグの修正。

Change Summary

Incremental Difference

--- trunk/ai.cpp (revision 115)
+++ trunk/ai.cpp (revision 116)
@@ -166,6 +166,7 @@
166166 //人なら座標を取得
167167 if( (pdata.p1 == 1)||(pdata.p1 == 6) ){
168168 SearchHumanPos(pdata.p4, &target_posx, &target_posz);
169+ movemode = AI_TRACKING;
169170 return true;
170171 }
171172
@@ -1838,6 +1839,12 @@
18381839 return;
18391840 }
18401841
1842+ //HPが0でないのに 死亡したことになってる ・・・生き返った?
1843+ if( battlemode == AI_DEAD ){
1844+ battlemode = AI_NORMAL;
1845+ SearchTarget(false);
1846+ }
1847+
18411848 //座標と角度を取得
18421849 ctrlhuman->GetPosData(&posx, &posy, &posz, NULL);
18431850 ctrlhuman->GetRxRy(&rx, &ry);