# HG changeset patch # User Wuzzy # Date 1538767918 -7200 # Node ID d82c580b659673219200a4b1d0a8e47054aea3aa # Parent aba78789f0bfb87c2682757eab130d70a9725fb7 Precalculate cMaxHogHealth diff -r aba78789f0bf -r d82c580b6596 hedgewars/uConsts.pas --- a/hedgewars/uConsts.pas Fri Oct 05 21:30:06 2018 +0200 +++ b/hedgewars/uConsts.pas Fri Oct 05 21:31:58 2018 +0200 @@ -178,6 +178,7 @@ // hedgehog info cMaxTeams = 8; // maximum number of teams cMaxHHIndex = 7; // maximum hedgehog index (counting starts at 0) + // NOTE: If you change cMaxHHIndex, also change cMaxHogHealth! cMaxHHs = cMaxTeams * (cMaxHHIndex+1); // maximum number of hogs cClanColors = 9; // number of possible clan colors @@ -187,7 +188,8 @@ cHHRadius = 9; // hedgehog radius cHHStepTicks = 29; - cMaxHogHealth : LongInt = High(LongInt) div (cMaxHHIndex+1); // maximum hedgehog health + cMaxHogHealth = 268435455; // maximum hedgehog health + // cMaxHogHealth was calculated by: High(LongInt) div (cMaxHHIndex+1); // Z levels cHHZ = 1000;