Commit 4e9ffc5
Shopeditor: Item Buyability Broken due to Cache State (#1621)
This pullrequest fixes the issue where items (not weapons) had the wrong
state if a custom show was created. This means that they were always
marked as selected, even if they weren't. This was due to the caching
being done too early, before the items were initialized at all.
The issue didn't exist for weapons because their setup is done in the
engine before any lua init code is executed.
---------
Co-authored-by: Tim Goll <[email protected]>1 parent dd63d89 commit 4e9ffc5
File tree
3 files changed
+4
-2
lines changed- gamemodes/terrortown/gamemode/client
3 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2190 | 2190 | | |
2191 | 2191 | | |
2192 | 2192 | | |
| 2193 | + | |
2193 | 2194 | | |
2194 | 2195 | | |
2195 | 2196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
210 | | - | |
211 | 209 | | |
212 | 210 | | |
213 | 211 | | |
| |||
292 | 290 | | |
293 | 291 | | |
294 | 292 | | |
| 293 | + | |
| 294 | + | |
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| |||
0 commit comments