Commit MetaInfo

修订版f9c1ffa51c7885521c5629dff44b16322dea42ac (tree)
时间2023-02-27 10:08:55
作者TDRR <srb2gamer@gmai...>
CommiterTDRR

Log Message

Moved bot pitch reset to StopAimingAtEnemy command.

更改概述

差异

diff -r 805780cfc641 -r f9c1ffa51c78 src/botcommands.cpp
--- a/src/botcommands.cpp Sun Mar 12 15:16:49 2023 +0000
+++ b/src/botcommands.cpp Sun Feb 26 21:08:55 2023 -0400
@@ -1773,6 +1773,10 @@
17731773 pBot->m_AngleDelta = 0;
17741774 pBot->m_AngleOffBy = 0;
17751775 pBot->m_AngleDesired = 0;
1776+
1777+ // [TDRR] Move pitch resetting to here, so custom bots can have
1778+ // their pitch changed with ACS (and because it makes more sense).
1779+ pBot->GetPlayer()->mo->pitch = 0;
17761780 }
17771781
17781782 //*****************************************************************************
diff -r 805780cfc641 -r f9c1ffa51c78 src/bots.cpp
--- a/src/bots.cpp Sun Mar 12 15:16:49 2023 +0000
+++ b/src/bots.cpp Sun Feb 26 21:08:55 2023 -0400
@@ -3592,8 +3592,6 @@
35923592 }
35933593 }
35943594 }
3595- else
3596- m_pPlayer->mo->pitch = 0;
35973595 }
35983596
35993597 //*****************************************************************************
Show on old repository browser