repo.or.cz
/
4DMemory.git
/
commitdiff
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
e46d384
)
Minor comments
master
author
Sverre Rabbelier
<
[email protected]
>
Sat, 26 Jan 2008 18:55:35 +0000
(26 19:55 +0100)
committer
Sverre Rabbelier
<
[email protected]
>
Sat, 26 Jan 2008 18:55:35 +0000
(26 19:55 +0100)
4DMemory/Playground.cs
patch
|
blob
|
blame
|
history
diff --git
a/4DMemory/Playground.cs
b/4DMemory/Playground.cs
index
64515c1
..
ba37552
100644
(file)
--- a/
4DMemory/Playground.cs
+++ b/
4DMemory/Playground.cs
@@
-44,11
+44,13
@@
namespace Memory
{
\r
Card pickedCard = m_cardsGrid.getCard(xpos, ypos, zpos);
\r
\r
+ // No card selected, this means that the player is selecting their first card
\r
if (m_currentCard == null)
\r
{
\r
m_currentCard = pickedCard;
\r
return m_currentPlayer;
\r
}
\r
+ // They are selecting their second card, compare with the first card
\r
else
\r
{
\r
if (m_currentCard.Equals(pickedCard))
\r