# HG changeset patch
# User unc0rr
# Date 1198097640 0
# Node ID a37b6966de84e46c654337fd8a5e1f042e097644
# Parent 7a20c50988ec1d3d8c2db6b57c00db7fe5f00d08
Some misc fixes
diff -r 7a20c50988ec -r a37b6966de84 QTfrontend/game.cpp
--- a/QTfrontend/game.cpp Wed Dec 19 11:10:23 2007 +0000
+++ b/QTfrontend/game.cpp Wed Dec 19 20:54:00 2007 +0000
@@ -85,7 +85,7 @@
{
HWProto::addStringListToBuffer(buf,
(*it).TeamGameConfig(gamecfg->getInitHealth()));
- HWProto::addStringToBuffer(buf, ammostr);
+ HWProto::addStringToBuffer(buf, QString("eammstore %1").arg(ammostr));
}
}
RawSendIPC(buf);
diff -r 7a20c50988ec -r a37b6966de84 QTfrontend/mapContainer.cpp
--- a/QTfrontend/mapContainer.cpp Wed Dec 19 11:10:23 2007 +0000
+++ b/QTfrontend/mapContainer.cpp Wed Dec 19 20:54:00 2007 +0000
@@ -34,7 +34,10 @@
QWidget(parent), mainLayout(this)
{
#if QT_VERSION >= 0x040300
- mainLayout.setContentsMargins (0, 1, 0, QApplication::style()->pixelMetric(QStyle::PM_LayoutBottomMargin));
+ mainLayout.setContentsMargins(QApplication::style()->pixelMetric(QStyle::PM_LayoutLeftMargin),
+ 1,
+ QApplication::style()->pixelMetric(QStyle::PM_LayoutRightMargin),
+ QApplication::style()->pixelMetric(QStyle::PM_LayoutBottomMargin));
#endif
imageButt=new QPushButton(this);
imageButt->setObjectName("imageButt");
diff -r 7a20c50988ec -r a37b6966de84 QTfrontend/selectWeapon.cpp
--- a/QTfrontend/selectWeapon.cpp Wed Dec 19 11:10:23 2007 +0000
+++ b/QTfrontend/selectWeapon.cpp Wed Dec 19 20:54:00 2007 +0000
@@ -86,9 +86,9 @@
QString SelWeaponWidget::getWeaponsString() const
{
- QString ammo("eammstore ");
+ QString ammo;
for(int i=0; i<20; ++i) {
- ammo=QString("%1%2").arg(ammo).arg((*this)[i]);
+ ammo += (*this)[i];
}
return ammo;
}
diff -r 7a20c50988ec -r a37b6966de84 hedgewars.kdevelop
--- a/hedgewars.kdevelop Wed Dec 19 11:10:23 2007 +0000
+++ b/hedgewars.kdevelop Wed Dec 19 20:54:00 2007 +0000
@@ -18,21 +18,21 @@
hedgewars
.
false
-
+
kdevsubversion
-
+
executable
/
- /home/igor/sources/hedgewars/bin/hedgewars
-
+ bin/hedgewars
+
false
true
-
- /home/igor/sources/hedgewars/bin
+
+
false
false
false
@@ -172,16 +172,16 @@
make
-
+
true
1
0
false
-
-
-
+
+
+
default
@@ -189,9 +189,9 @@
0
-
-
-
+
+
+
default
@@ -200,15 +200,16 @@
-
+
-
-
-
-
+
+
+
+
true
false
false
+ false
false
@@ -277,8 +278,8 @@
4
/usr/qt/3
EmbeddedKDevDesigner
- /usr/bin/qmake
- /usr/bin/designer
+ /usr/local/bin/qmake-qt4
+ /usr/local/bin/designer-qt4
@@ -310,7 +311,7 @@
false
-
+
set
m_,_
theValue
@@ -329,7 +330,7 @@
false
-
+
true
false
@@ -342,13 +343,13 @@
-
-
-
+
+
+
-
+
/usr/home/unC0Rr/Sources/Hedgewars/Hedgewars-GNA/tags
diff -r 7a20c50988ec -r a37b6966de84 hedgewars/CCHandlers.inc
--- a/hedgewars/CCHandlers.inc Wed Dec 19 11:10:23 2007 +0000
+++ b/hedgewars/CCHandlers.inc Wed Dec 19 20:54:00 2007 +0000
@@ -409,6 +409,7 @@
with Hedgehogs[CurrHedgehog] do
begin
bSelected:= false;
+
if bShowAmmoMenu then bShowAmmoMenu:= false
else if ((Gear^.State and (gstAttacking or gstAttacked)) <> 0) or (AttacksNum > 0)
or ((Gear^.State and gstHHDriven) = 0) then else bShowAmmoMenu:= true