From 3bfadf4d2329da54f2097e1f0fafba371347465f Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 4 May 2013 20:36:29 -0300 Subject: Mapreg saving overhaul Server only saves variables that were changed, not all of them. Special Thanks to Yommy <3~! Signed-off-by: shennetsind --- src/map/mapreg.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/map/mapreg.h') diff --git a/src/map/mapreg.h b/src/map/mapreg.h index d5fadafc5..e83f9e053 100644 --- a/src/map/mapreg.h +++ b/src/map/mapreg.h @@ -1,9 +1,19 @@ -// Copyright (c) Athena Dev Teams - Licensed under GNU GPL -// For more information, see LICENCE in the main folder +// Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// See the LICENSE file +// Portions Copyright (c) Athena Dev Teams #ifndef _MAPREG_H_ #define _MAPREG_H_ +struct mapreg_save { + int uid; + union { + int i; + char *str; + } u; + bool save; +}; + void mapreg_reload(void); void mapreg_final(void); void mapreg_init(void); -- cgit v1.2.3-70-g09d2