Added display showing information about selected vertex

This commit is contained in:
2011-07-01 18:04:15 -04:00
parent d15e6590ec
commit c49fdb8169
5 changed files with 38 additions and 12 deletions

View File

@ -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;
}