summaryrefslogtreecommitdiff
path: root/src/functions.c
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2017-11-30 15:45:43 +0300
committerOxore <oxore@protonmail.com>2017-11-30 15:45:43 +0300
commit75d123b79dc894f2c2de43f25009b5fa84a00eec (patch)
tree9c4b5a7aa8e2d20d2e2ca9603de3ead03bb75612 /src/functions.c
parent66783797c33d457e9d4d7ca669a6ad1fa3cf554c (diff)
Redefine structures with typedef; A bit of code movement
Diffstat (limited to 'src/functions.c')
-rw-r--r--src/functions.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/functions.c b/src/functions.c
index 7698540..503d971 100644
--- a/src/functions.c
+++ b/src/functions.c
@@ -656,9 +656,7 @@ void drawNextShape(sfRenderWindow *window)
}
}
-
-/* Cleanup resources */
-void cleanup() {
+void cleanupFld() {
for (int j = 0; j < fldSize.y; j++)
for(int i = 0; i < fldSize.x; i++)
sfRectangleShape_destroy(fld[j][i]);