eliot-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Eliot-dev] Changes to eliot/game/game.cpp


From: eliot-dev
Subject: [Eliot-dev] Changes to eliot/game/game.cpp
Date: Sun, 06 Nov 2005 12:13:48 -0500

Index: eliot/game/game.cpp
diff -u eliot/game/game.cpp:1.22 eliot/game/game.cpp:1.23
--- eliot/game/game.cpp:1.22    Sun Nov  6 01:05:06 2005
+++ eliot/game/game.cpp Sun Nov  6 17:13:45 2005
@@ -781,13 +781,14 @@
 
 void Game::addHumanPlayer()
 {
-    m_players.push_back(new HumanPlayer());
+    // The ID of the player is its position in the m_players vector
+    m_players.push_back(new HumanPlayer(getNPlayers()));
 }
 
 
 void Game::addAIPlayer()
 {
-    m_players.push_back(new AIPercent(0));
+    m_players.push_back(new AIPercent(getNPlayers(), 0));
 }
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]