Fix refuel trucks, add upgraded trucks to array

Issue was:
A. with locality, we were checking the wrong vehicle in one instance and

B. with variable names, since we called local_setFuel and _vehicle was
private already from the calling script we ran into an issue with
duplicate variables causing the command to fail. local_setFuel doesnt
really need any local variable so I removed them and this fixed the
issue (script filters may need to be adjusted accordingly)
This commit is contained in:
icomrade
2016-11-16 14:53:17 -05:00
parent f994b95c1d
commit e398250489
3 changed files with 20 additions and 51 deletions

View File

@@ -1,3 +1 @@
_vehicle = _this select 0;
_qty = _this select 1;
_vehicle setFuel _qty;
(_this select 0) setFuel (_this select 1);