# HG changeset patch # User nemo # Date 1290363222 18000 # Node ID beb4de0af99023bf4ea21f693b13f33d99809f6d # Parent ed78465973f6b496f43eaaa500e49e61d96c8591 Increase teams to 8 to match the 8 colours, fix issue #108, reenable rope length modifier diff -r ed78465973f6 -r beb4de0af990 QTfrontend/game.cpp --- a/QTfrontend/game.cpp Sun Nov 21 12:11:50 2010 -0500 +++ b/QTfrontend/game.cpp Sun Nov 21 13:13:42 2010 -0500 @@ -88,7 +88,7 @@ HWProto::addStringToBuffer(buf, QString("eammprob %1").arg(ammostr.mid(cAmmoNumber, cAmmoNumber))); HWProto::addStringToBuffer(buf, QString("eammdelay %1").arg(ammostr.mid(2 * cAmmoNumber, cAmmoNumber))); HWProto::addStringToBuffer(buf, QString("eammreinf %1").arg(ammostr.mid(3 * cAmmoNumber, cAmmoNumber))); - HWProto::addStringToBuffer(buf, QString("eammstore")); + if(!gamecfg->schemeData(21).toBool()) HWProto::addStringToBuffer(buf, QString("eammstore")); HWProto::addStringListToBuffer(buf, (*it).TeamGameConfig(gamecfg->getInitHealth())); } diff -r ed78465973f6 -r beb4de0af990 QTfrontend/gamecfgwidget.h --- a/QTfrontend/gamecfgwidget.h Sun Nov 21 12:11:50 2010 -0500 +++ b/QTfrontend/gamecfgwidget.h Sun Nov 21 13:13:42 2010 -0500 @@ -44,6 +44,7 @@ QComboBox * WeaponsName; HWMapContainer* pMapContainer; QTableView * tv; + QVariant schemeData(int column) const; public slots: void setParam(const QString & param, const QStringList & value); @@ -74,7 +75,6 @@ void setNetAmmo(const QString& name, const QString& ammo); - QVariant schemeData(int column) const; }; #endif // GAMECONFIGWIDGET_H diff -r ed78465973f6 -r beb4de0af990 hedgewars/uCommands.pas --- a/hedgewars/uCommands.pas Sun Nov 21 12:11:50 2010 -0500 +++ b/hedgewars/uCommands.pas Sun Nov 21 13:13:42 2010 -0500 @@ -146,6 +146,7 @@ RegisterVariable('waterrise', vtLongInt, @cWaterRise , false); RegisterVariable('healthdec', vtLongInt, @cHealthDecrease, false); RegisterVariable('damagepct',vtLongInt, @cDamagePercent , false); + RegisterVariable('ropepct' , vtLongInt, @cRopePercent , false); RegisterVariable('minedudpct',vtLongInt,@cMineDudPercent, false); RegisterVariable('minesnum', vtLongInt, @cLandMines , false); RegisterVariable('explosives',vtLongInt,@cExplosives , false); @@ -214,4 +215,4 @@ end; end; -end. \ No newline at end of file +end. diff -r ed78465973f6 -r beb4de0af990 hedgewars/uConsts.pas --- a/hedgewars/uConsts.pas Sun Nov 21 12:11:50 2010 -0500 +++ b/hedgewars/uConsts.pas Sun Nov 21 13:13:42 2010 -0500 @@ -124,7 +124,7 @@ cTransparentColor: Longword = $00000000; - cMaxTeams = 6; + cMaxTeams = 8; cMaxHHIndex = 7; cMaxHHs = 48; cMaxSpawnPoints = 1024; diff -r ed78465973f6 -r beb4de0af990 hedgewars/uGears.pas --- a/hedgewars/uGears.pas Sun Nov 21 12:11:50 2010 -0500 +++ b/hedgewars/uGears.pas Sun Nov 21 13:13:42 2010 -0500 @@ -273,7 +273,7 @@ end; gtRope: begin gear^.Radius:= 3; - gear^.Friction:= _450; + gear^.Friction:= _450 * _0_01 * cRopePercent; RopePoints.Count:= 0; end; gtMine: begin