summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-09-14 15:54:28 +0200
committerHaru <haru@dotalux.com>2015-11-14 21:12:13 +0100
commitb03ff432644773890f7d4f48f2e2becb34dcd4d1 (patch)
tree4039224d1b113d30bfb48503a670ebe370d53d13 /src/map/script.h
parent367c806bccbf242c2025356777b4cf1d194c481a (diff)
downloadhercules-b03ff432644773890f7d4f48f2e2becb34dcd4d1.tar.gz
hercules-b03ff432644773890f7d4f48f2e2becb34dcd4d1.tar.bz2
hercules-b03ff432644773890f7d4f48f2e2becb34dcd4d1.tar.xz
hercules-b03ff432644773890f7d4f48f2e2becb34dcd4d1.zip
Changed struct script_queue::item into a VECTOR and Renamed to ::entries
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/map/script.h b/src/map/script.h
index aa31389f6..6b728ab88 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -397,10 +397,9 @@ struct script_stack {
* @author Ind/Hercules
*/
struct script_queue {
- int id; ///< Queue identifier
- int *item; ///< Items in the queue (variable-size array)
- int items; ///< Amount of elements in \c item
- int size; ///< Capacity of the \c item array (not the current amount of items in it since it can have empty slots
+ int id; ///< Queue identifier
+ VECTOR_DECL(int) entries; ///< Items in the queue.
+ bool valid; ///< Whether the queue is valid.
/// Events
char event_logout[EVENT_NAME_LENGTH]; ///< Logout event
char event_death[EVENT_NAME_LENGTH]; ///< Death event
@@ -678,7 +677,7 @@ struct script_interface {
bool (*queue_del) (int idx);
bool (*queue_remove) (int idx, int var);
int (*queue_create) (void);
- void (*queue_clear) (int idx);
+ bool (*queue_clear) (int idx);
/* */
const char * (*parse_curly_close) (const char *p);
const char * (*parse_syntax_close) (const char *p);