Added display showing information about selected vertex
This commit is contained in:
11
gamedata.cpp
11
gamedata.cpp
@ -107,13 +107,14 @@ bool GameData::add_vertex(int x, int y, int z, int r, int colour)
|
||||
// this is the special case for adding the first vertex for each player
|
||||
if (!turn->has_played())
|
||||
{
|
||||
Graph::add_vertex(x, y, z, r, colour, 10);
|
||||
if (Graph::add_vertex(x, y, z, r, colour, 10))
|
||||
{
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "debug: GameData::add_vertex(): strength=%2.f\n",
|
||||
calculate_strength(*(vertices.rbegin())));
|
||||
fprintf(stderr, "debug: GameData::add_vertex(): strength=%2.f\n", calculate_strength(*(vertices.rbegin())));
|
||||
#endif
|
||||
toggle_turn();
|
||||
return true;
|
||||
toggle_turn();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user