[prev in list] [next in list] [prev in thread] [next in thread]
List: atlantik-devel
Subject: [atlantik-cvs] CVS: kdegames/atlantik/client atlantik.cpp,1.121,1.121.6.1
From: kde () office ! kde ! org
Date: 2002-12-19 0:41:35
[Download RAW message or body]
Update of /home/kde/kdegames/atlantik/client
In directory office:/tmp/cvs-serv24671
Modified Files:
Tag: KDE_3_1_BRANCH
atlantik.cpp
Log Message:
never reinit existing board
Index: atlantik.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/atlantik.cpp,v
retrieving revision 1.121
retrieving revision 1.121.6.1
diff -u -d -r1.121 -r1.121.6.1
--- atlantik.cpp 11 Sep 2002 03:46:37 -0000 1.121
+++ atlantik.cpp 19 Dec 2002 00:41:29 -0000 1.121.6.1
@@ -164,8 +164,7 @@
void Atlantik::newPlayer(Player *player)
{
- if (!m_board)
- initBoard();
+ initBoard();
m_board->addToken(player);
@@ -187,8 +186,7 @@
void Atlantik::newEstate(Estate *estate)
{
- if (!m_board)
- initBoard();
+ initBoard();
m_board->addEstateView(estate, m_config.indicateUnowned, m_config.highliteUnowned, \
m_config.darkenMortgaged, m_config.quartzEffects); }
@@ -202,8 +200,7 @@
void Atlantik::newAuction(Auction *auction)
{
- if (!m_board)
- initBoard();
+ initBoard();
m_board->addAuctionWidget(auction);
}
@@ -290,6 +287,9 @@
void Atlantik::initBoard()
{
+ if (m_board)
+ return;
+
m_board = new AtlantikBoard(m_atlanticCore, 40, AtlantikBoard::Play, m_mainWidget, \
"board"); m_board->setViewProperties(m_config.indicateUnowned, \
m_config.highliteUnowned, m_config.darkenMortgaged, m_config.quartzEffects, \
m_config.animateTokens);
_______________________________________________
atlantik-cvs mailing list
atlantik-cvs@mail.kde.org
http://mail.kde.org/mailman/listinfo/atlantik-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic