Skip to content
Browse files

deprecate / remove the 'toAirWeapon' WeaponDef tag

(use "onlyTargetCategory = VTOL" for the same effect)
  • Loading branch information...
1 parent aeba8be commit e4f5f0d26a2c51d8903949e0ca816775a3516358 rt committed Jan 31, 2012
Showing with 0 additions and 6 deletions.
  1. +0 −6 rts/Sim/Weapons/WeaponDefHandler.cpp
View
6 rts/Sim/Weapons/WeaponDefHandler.cpp
@@ -287,13 +287,7 @@ void CWeaponDefHandler::ParseWeapon(const LuaTable& wdTable, WeaponDef& wd)
wd.trajectoryHeight = wdTable.GetFloat("trajectoryHeight", 0.0f);
wd.noAutoTarget = (wd.manualfire || wd.interceptor || wd.isShield);
-
wd.onlyTargetCategory = 0xffffffff;
- if (wdTable.GetBool("toAirWeapon", false)) {
- // fix if we sometime call aircrafts otherwise
- wd.onlyTargetCategory = CCategoryHandler::Instance()->GetCategories("VTOL");
- //LOG("air only weapon %s %i", weaponname.c_str(), wd.onlyTargetCategory);
- }
wd.largeBeamLaser = wdTable.GetBool("largeBeamLaser", false);
Something went wrong with that request. Please try again.