silence some warnings in the defense scenarios

alut-include-path
Maikel de Vries 2017-01-14 21:39:08 +01:00
parent e00f1e9672
commit f9e3639d91
4 changed files with 2 additions and 8 deletions

View File

@ -2,8 +2,6 @@
#appendto Clonk
static g_homebases; // item management / buy menus for each player
func Ejection()
{
if (!Contents() && g_homebases && g_homebases[GetOwner()])

View File

@ -2,8 +2,6 @@
#appendto GrenadeLauncher
static g_homebases; // item management / buy menus for each player
func Ejection()
{
var cont = Contained();

View File

@ -2,8 +2,6 @@
QuickBuy
--*/
static g_quickbuy_items;
global func PlayerControl(int plr, int ctrl)
{
if (ctrl >= CON_QuickBuy0 && ctrl <= CON_QuickBuy9)

View File

@ -26,7 +26,7 @@ public func Entrance(...)
public func Gidl_UpdateLoadTimes()
{
if (!Contained()) return false;
if (!Contained() || !g_homebases) return false;
var base = g_homebases[Contained()->GetOwner()];
if (base)
{
@ -44,7 +44,7 @@ public func Gidl_UpdateLoadTimes()
public func Guardians_UpdateShootingStrength()
{
if (!Contained()) return false;
if (!Contained() || !g_homebases) return false;
if (GetID() == Blunderbuss) return false; // Update not for blunderbusses
var base = g_homebases[Contained()->GetOwner()];
if (base)