Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NetWorld
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LAIRD Timothy
NetWorld
Commits
2135e79f
Commit
2135e79f
authored
Apr 28, 2021
by
Timothy LAIRD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge fix
parent
c0d7fb75
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
controlpanel.c
src/controlpanel.c
+3
-3
main-viewer.c
src/main-viewer.c
+3
-0
mission.c
src/mission.c
+0
-1
player.c
src/player.c
+0
-1
No files found.
src/controlpanel.c
View file @
2135e79f
...
...
@@ -111,7 +111,7 @@ void Panel_drawWin(Panel * self, Player * player){
void
Panel_drawGame
(
Panel
*
self
)
{
//
BeginDrawing();
BeginDrawing
();
ClearBackground
(
RAYWHITE
);
// Draw the edges for each nodes:
...
...
@@ -127,8 +127,8 @@ void Panel_drawGame(Panel * self)
{
Panel_drawNode
(
self
,
&
(
self
->
world
->
nodes
[
i
])
);
}
//
Panel_drawBasis(self);
//
EndDrawing();
Panel_drawBasis
(
self
);
EndDrawing
();
}
void
Panel_drawBasis
(
Panel
*
self
)
...
...
src/main-viewer.c
View file @
2135e79f
...
...
@@ -52,6 +52,9 @@ int main(int nbArg, char ** arg)
// Main game loop
//UI elements
Panel
*
panel
=
Panel_new
();
Panel_initialize
(
panel
,
world
,
screenWidth
,
screenHeight
);
Main_Menu
*
menu
=
Main_Menu_init
(
screenWidth
,
screenHeight
);
Main_Menu
*
rulesMenu
=
Rules_Menu_init
(
screenWidth
,
screenHeight
);
Options_Menu
*
optionsMenu
=
Options_Menu_init
(
&
playerCount
,
&
nodeCount
,
screenWidth
,
screenHeight
);
...
...
src/mission.c
View file @
2135e79f
...
...
@@ -34,7 +34,6 @@ Mission * Mission_init(const int playerID, NetWorld * world){
self
->
displayText
=
displayText
;
break
;
}
return
self
;
}
...
...
src/player.c
View file @
2135e79f
...
...
@@ -38,7 +38,6 @@ void Players_delete(Player * player, int size)
for
(
int
i
=
0
;
i
<
size
;
i
++
){
free
((
player
+
i
)
->
nodes
);
free
((
player
+
i
)
->
selectedNode
);
free
((
player
+
i
));
}
free
(
player
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment