Skip to content

Commit

Permalink
Fix #5121
Browse files Browse the repository at this point in the history
  • Loading branch information
ashdnazg committed Feb 28, 2016
1 parent e6b9bb9 commit a91ce10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rts/Sim/Weapons/WeaponDef.cpp
Expand Up @@ -405,6 +405,8 @@ WeaponDef::WeaponDef(const LuaTable& wdTable, const std::string& name_, int id_)
} else if (type == "Melee") {
// no projectile or intercept type
defInterceptType = 256;

ownerExpAccWeight = wdTable.GetFloat("ownerExpAccWeight", 0.9f);
} else if (type == "Flame") {
// CFlameProjectile
projectileType = WEAPON_FLAME_PROJECTILE;
Expand Down

4 comments on commit a91ce10

@abma
Copy link
Contributor

@abma abma commented on a91ce10 Feb 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the curious: why so many different magic values / where do these values come from?

@ashdnazg
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea why, I didn't want to change them 2 seconds before a release

@FLOZi
Copy link
Contributor

@FLOZi FLOZi commented on a91ce10 Feb 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

abma; I presume you refer to ownerExcpAccWeight (not defInterceptType) https://springrts.com/mantis/view.php?id=3310

@abma
Copy link
Contributor

@abma abma commented on a91ce10 Feb 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exactly! :)

Please sign in to comment.