[atlantik-cvs] CVS: kdegames/atlantik/libatlantic player.cpp,1.20,1.21 player.h,1.17,1.18
| Newsgroups | gmane.comp.kde.devel.atlantik |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/kde/kdegames/atlantik/libatlantic
In directory office:/tmp/cvs-serv17170/libatlantic
Modified Files:
player.cpp player.h
Log Message:
fix 61270: notification when is my turn
Index: player.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/player.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- player.cpp 23 Jun 2003 01:22:39 -0000 1.20
+++ player.cpp 16 Jul 2003 21:53:16 -0000 1.21
@@ -91,6 +91,8 @@
{
m_hasTurn = hasTurn;
m_changed = true;
+ if (m_hasTurn && m_isSelf)
+ emit gainedTurn();
}
}
Index: player.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/player.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- player.h 23 Jun 2003 01:22:39 -0000 1.17
+++ player.h 16 Jul 2003 21:53:16 -0000 1.18
@@ -68,6 +68,7 @@
signals:
void changed(Player *player);
+ void gainedTurn();
private:
int m_id, m_gameId;