QTfrontend/gameuiconfig.cpp
changeset 529 812682c1ab62
parent 486 7ea71cd3acd5
child 555 0376fdcc6322
--- a/QTfrontend/gameuiconfig.cpp	Sun May 27 17:55:55 2007 +0000
+++ b/QTfrontend/gameuiconfig.cpp	Sun May 27 20:17:55 2007 +0000
@@ -38,8 +38,11 @@
 
 	Form->ui.pageNet->editNetNick->setText(value("net/nick", QLineEdit::tr("unnamed")).toString());
 	Form->ui.pageNet->editIP->setText(value("net/ip", "").toString());
+
 	Form->ui.pageOptions->CBShowFPS->setChecked(value("fps/show", false).toBool());
 	Form->ui.pageOptions->fpsedit->setValue(value("fps/interval", 27).toUInt());
+
+	Form->ui.pageOptions->CBAltDamage->setChecked(value("misc/altdamage", true).toBool());
 }
 
 QStringList GameUIConfig::GetTeamsList()
@@ -65,6 +68,8 @@
 
 	setValue("fps/show", isShowFPSEnabled());
 	setValue("fps/interval", Form->ui.pageOptions->fpsedit->value());
+
+	setValue("misc/altdamage", isAltDamageEnabled());
 }
 
 int GameUIConfig::vid_Resolution()
@@ -87,6 +92,11 @@
 	return Form->ui.pageOptions->CBShowFPS->isChecked();
 }
 
+bool GameUIConfig::isAltDamageEnabled()
+{
+	return Form->ui.pageOptions->CBAltDamage->isChecked();;
+}
+
 quint8 GameUIConfig::timerInterval()
 {
 	return 35 - Form->ui.pageOptions->fpsedit->value();