initialise old-style gunmounts, we still need separation and orientation

master
Robert Norris 2013-09-17 21:23:00 +10:00
parent e75b6c6ef9
commit c841848555
1 changed files with 7 additions and 0 deletions

View File

@ -127,6 +127,13 @@ int _define_ship(lua_State *L, ShipType::Tag tag, std::vector<ShipType::Id> *lis
}
}
for (int i = 0; i < ShipType::GUNMOUNT_MAX; i++) {
s.gunMount[i].pos = vector3f(0,0,0);
s.gunMount[i].dir = vector3f(0,0,1);
s.gunMount[i].sep = 5;
s.gunMount[i].orient = ShipType::DUAL_LASERS_HORIZONTAL;
}
lua_pushstring(L, "gun_mounts");
lua_gettable(L, -2);
if (lua_istable(L, -1)) {