Commit 3783cb0
committed
fix STAY_NEAR_TARGET_ITEM
1. Allow "Stay near me" and "Stay near my target" to work even if the teams do not match
2. Allow "Stay near my target" to be issued regardless of team
3. Avoid divide-by-zero errors when running `ai_stay_near()`1 parent 829edaa commit 3783cb0
2 files changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11476 | 11476 | | |
11477 | 11477 | | |
11478 | 11478 | | |
11479 | | - | |
| 11479 | + | |
11480 | 11480 | | |
11481 | 11481 | | |
11482 | 11482 | | |
| |||
11507 | 11507 | | |
11508 | 11508 | | |
11509 | 11509 | | |
11510 | | - | |
| 11510 | + | |
11511 | 11511 | | |
11512 | 11512 | | |
11513 | 11513 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
150 | 151 | | |
151 | | - | |
| 152 | + | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| |||
1319 | 1320 | | |
1320 | 1321 | | |
1321 | 1322 | | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
1325 | | - | |
1326 | | - | |
1327 | 1323 | | |
1328 | 1324 | | |
1329 | 1325 | | |
| |||
0 commit comments