Vertices can now render themselves - not sure what to do about edges, right now game is still doing them

This commit is contained in:
2011-07-06 14:52:45 -04:00
parent 42e2e43ead
commit 735a9dfcef
5 changed files with 81 additions and 47 deletions

View File

@ -95,10 +95,13 @@ void MenuButton::set_state(Mode mode, VertexType type, GameVertex* current)
)
selected = true;
// no optional buttons if current == NULL, period
if (current == NULL) return;
// If we have selected one of our vertices, and we're one of the three
// main buttons, be visible
if (current != NULL && action & (BUTTON_ATTACK | BUTTON_MOVE |
BUTTON_BUILD))
if (action & (BUTTON_ATTACK | BUTTON_MOVE |
BUTTON_BUILD))
visible = true;
// If we're one of the other three, and we're in MODE_BUILD, we're visible