Commit 2135e79f authored by Timothy LAIRD's avatar Timothy LAIRD

merge fix

parent c0d7fb75
...@@ -111,7 +111,7 @@ void Panel_drawWin(Panel * self, Player * player){ ...@@ -111,7 +111,7 @@ void Panel_drawWin(Panel * self, Player * player){
void Panel_drawGame(Panel * self) void Panel_drawGame(Panel * self)
{ {
//BeginDrawing(); BeginDrawing();
ClearBackground(RAYWHITE); ClearBackground(RAYWHITE);
// Draw the edges for each nodes: // Draw the edges for each nodes:
...@@ -127,8 +127,8 @@ void Panel_drawGame(Panel * self) ...@@ -127,8 +127,8 @@ void Panel_drawGame(Panel * self)
{ {
Panel_drawNode( self, &(self->world->nodes[i]) ); Panel_drawNode( self, &(self->world->nodes[i]) );
} }
//Panel_drawBasis(self); Panel_drawBasis(self);
//EndDrawing(); EndDrawing();
} }
void Panel_drawBasis(Panel * self) void Panel_drawBasis(Panel * self)
......
...@@ -52,6 +52,9 @@ int main(int nbArg, char ** arg) ...@@ -52,6 +52,9 @@ int main(int nbArg, char ** arg)
// Main game loop // Main game loop
//UI elements //UI elements
Panel * panel = Panel_new();
Panel_initialize(panel, world, screenWidth, screenHeight);
Main_Menu * menu = Main_Menu_init(screenWidth, screenHeight); Main_Menu * menu = Main_Menu_init(screenWidth, screenHeight);
Main_Menu * rulesMenu = Rules_Menu_init(screenWidth, screenHeight); Main_Menu * rulesMenu = Rules_Menu_init(screenWidth, screenHeight);
Options_Menu * optionsMenu = Options_Menu_init(&playerCount, &nodeCount, screenWidth, screenHeight); Options_Menu * optionsMenu = Options_Menu_init(&playerCount, &nodeCount, screenWidth, screenHeight);
......
...@@ -34,7 +34,6 @@ Mission * Mission_init(const int playerID, NetWorld * world){ ...@@ -34,7 +34,6 @@ Mission * Mission_init(const int playerID, NetWorld * world){
self->displayText = displayText; self->displayText = displayText;
break; break;
} }
return self; return self;
} }
......
...@@ -38,7 +38,6 @@ void Players_delete(Player * player, int size) ...@@ -38,7 +38,6 @@ void Players_delete(Player * player, int size)
for(int i = 0 ; i < size ; i++){ for(int i = 0 ; i < size ; i++){
free((player+i)->nodes); free((player+i)->nodes);
free((player+i)->selectedNode); free((player+i)->selectedNode);
free((player+i));
} }
free(player); free(player);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment