diff libcore/core/sprite.c @ 192:4ad7420ab678

rpg: add minimalist battle system, continue #2477 @60h - Implement battle as states, - Add basic support for spells (no calculation yet), - Add won/lost state, - Add animations and messages, - Add order.
author David Demelier <markand@malikania.fr>
date Sat, 07 Nov 2020 16:00:39 +0100
parents eb0a7ab71023
children
line wrap: on
line diff
--- a/libcore/core/sprite.c	Sat Nov 07 15:40:34 2020 +0100
+++ b/libcore/core/sprite.c	Sat Nov 07 16:00:39 2020 +0100
@@ -47,7 +47,7 @@
 }
 
 bool
-sprite_draw(struct sprite *sprite, unsigned int r, unsigned int c, int x, int y)
+sprite_draw(const struct sprite *sprite, unsigned int r, unsigned int c, int x, int y)
 {
 	assert(sprite_ok(sprite));
 	assert(r < sprite->nrows);