Skip to content

Commit

Permalink
Cargo - Fix can't load Slingload_01_Base_F (#8437)
Browse files Browse the repository at this point in the history
* fix can't load Slingload_01_Base_F

20ft containers (`Land_Cargo20_military_green_F`) can be loaded but all children from `Slingload_01_Base_F` which share the same real size of a 20ft container can't be loaded (ex: `B_Slingload_01_Ammo_F`)

* add a comment next to the changed line 

add a comment next to the changed line indicating why it has to be like that (the point of this PR) for future source reference
  • Loading branch information
Vdauphin authored Sep 25, 2021
1 parent d532878 commit e31d931
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/cargo/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ class CfgVehicles {

//Huron 20ft containers
class Slingload_01_Base_F: Slingload_base_F {
GVAR(canLoad) = 0;
GVAR(size) = -1;
GVAR(canLoad) = 1;
GVAR(size) = 50; // Use same size value from 20ft containers for consistancy
};
class B_Slingload_01_Cargo_F: Slingload_01_Base_F { // Huron Cargo
GVAR(space) = 20;
Expand Down

0 comments on commit e31d931

Please sign in to comment.