Skip to content

Commit fa28e8f

Browse files
committed
Fixed vehicle spawning function not reducing CP according to cost
Previously would always decrease CP pool by four CP due to Copy-paste error. Now it actually does reduce CP pool by passed parameter.
1 parent 8b20baa commit fa28e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/dialog/spawnVehicle.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ _requiredPoints = _this select 0;
22
_vehicleType = _this select 1;
33

44
if (commandpointsblu1 >= _requiredPoints) then {
5-
commandpointsblu1 = commandpointsblu1 - 4;
5+
commandpointsblu1 = commandpointsblu1 - _requiredPoints;
66
ctrlSetText [1000, format["%1",commandpointsblu1]];
77
_spawnPos = (getpos hq_blu1) findEmptyPosition [40, 120, _vehicleType];
88
_spawnPos = [(_spawnPos select 0), _spawnPos select 1];

0 commit comments

Comments
 (0)