summaryrefslogtreecommitdiff
path: root/src/modules/submit/submit.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2018-12-31 16:35:48 -0800
committerVito Caputo <vcaputo@pengaru.com>2018-12-31 16:35:48 -0800
commit6a643daad79440988845f9242acf50055fa17c52 (patch)
treea38fbf6aa2ecdd6f8397979ba87fb581e4b1d8a4 /src/modules/submit/submit.c
parent3b9deff98e7bb49fdc56e0fc0aa428fc25fe9044 (diff)
libs/grid: fix grid_ops_t.taken player type
Just making things consistent, also dropping unnecessary player assert from submit module. Future libs/grid may explore using the "unassigned" zero player in taken calls for unassigning cells like in simultaneously taken collision scenarios.
Diffstat (limited to 'src/modules/submit/submit.c')
-rw-r--r--src/modules/submit/submit.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/submit/submit.c b/src/modules/submit/submit.c
index 9f26dc8..18886d8 100644
--- a/src/modules/submit/submit.c
+++ b/src/modules/submit/submit.c
@@ -14,7 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
@@ -75,12 +74,10 @@ static void draw_grid(submit_context_t *ctxt, fb_fragment_t *fragment)
}
-static void taken(void *ctx, uint32_t x, uint32_t y, unsigned player)
+static void taken(void *ctx, uint32_t x, uint32_t y, uint32_t player)
{
submit_context_t *c = ctx;
- assert(player);
-
c->cells[y * GRID_SIZE + x] = player;
}
© All Rights Reserved