Commit f9354b8
authored
Fix plugin returning a null nav area when based on player origin (#897)
* Update l4d2_tankrage.sp
current check sometimes returns a null nav area
example: c1m1_hotel, teleport to the position "300 5683 2893"
the current flow displayed by the plugin outputs "14%" because the "flow" variable is 0, because no nav (pNavArea) was found
using "L4D_GetLastKnownArea" is more accurate since it outputs the same value as the "current_flow_distance" game command
* Update current.sp
current check sometimes returns a null nav area
example: c1m1_hotel, teleport to the position "300 5683 2893"
the current flow displayed by the plugin outputs "14%" because the "flow" variable is 0, because no nav (pNavArea) was found
using "L4D_GetLastKnownArea" is more accurate since it outputs the same value as the "current_flow_distance" game command
* Update current.sp
removed origin variable
* Update l4d2_tankrage.sp
removed origin variable
* Update l4d2_tankrage.sp
updated plugin version
* Update current.sp
updated plugin version1 parent 3902532 commit f9354b8
2 files changed
Lines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| |||
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
90 | | - | |
| 89 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
180 | | - | |
| 179 | + | |
181 | 180 | | |
182 | 181 | | |
183 | 182 | | |
| |||
226 | 225 | | |
227 | 226 | | |
228 | 227 | | |
229 | | - | |
| 228 | + | |
0 commit comments