summaryrefslogtreecommitdiff
path: root/src/char/int_status.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-19 15:50:41 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-19 15:50:41 +0000
commitb9804183841afd5381069796096a154edb5b9f53 (patch)
tree95e6f70d9ecd43e727d0defe1b02a818bc191169 /src/char/int_status.c
parent3bd682b3cb3507c8a57fa6930475808981fd0663 (diff)
downloadhercules-b9804183841afd5381069796096a154edb5b9f53.tar.gz
hercules-b9804183841afd5381069796096a154edb5b9f53.tar.bz2
hercules-b9804183841afd5381069796096a154edb5b9f53.tar.xz
hercules-b9804183841afd5381069796096a154edb5b9f53.zip
Reformatting @_@
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10581 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/int_status.c')
-rw-r--r--src/char/int_status.c22
1 files changed, 8 insertions, 14 deletions
diff --git a/src/char/int_status.c b/src/char/int_status.c
index 719820f3e..ccab32431 100644
--- a/src/char/int_status.c
+++ b/src/char/int_status.c
@@ -23,8 +23,7 @@ static void* create_scdata(DBKey key, va_list args) {
/*==========================================
* Loads status change data of the player given. [Skotlex]
- *------------------------------------------
- */
+ *------------------------------------------*/
struct scdata* status_search_scdata(int aid, int cid)
{
struct scdata *data;
@@ -35,8 +34,7 @@ struct scdata* status_search_scdata(int aid, int cid)
/*==========================================
* Deletes status change data of the player given. [Skotlex]
* Should be invoked after the data of said player was successfully loaded.
- *------------------------------------------
- */
+ *------------------------------------------*/
void status_delete_scdata(int aid, int cid)
{
struct scdata *scdata = idb_remove(scdata_db, cid);
@@ -87,8 +85,7 @@ static int inter_scdata_fromstr(char *line, struct scdata *sc_data)
}
/*==========================================
* Loads all scdata from the given filename.
- *------------------------------------------
- */
+ *------------------------------------------*/
void status_load_scdata(const char* filename)
{
FILE *fp;
@@ -138,8 +135,7 @@ static int inter_status_save_sub(DBKey key, void *data, va_list ap) {
/*==========================================
* Saves all scdata to the given filename.
- *------------------------------------------
- */
+ *------------------------------------------*/
void inter_status_save()
{
FILE *fp;
@@ -155,8 +151,7 @@ void inter_status_save()
/*==========================================
* Initializes db.
- *------------------------------------------
- */
+ *------------------------------------------*/
void status_init()
{
scdata_db = db_alloc(__FILE__,__LINE__,DB_INT,DB_OPT_BASE,sizeof(int));
@@ -165,8 +160,7 @@ void status_init()
/*==========================================
* Frees up memory.
- *------------------------------------------
- */
+ *------------------------------------------*/
static int scdata_db_final(DBKey k,void *d,va_list ap)
{
struct scdata *data = (struct scdata*)d;
@@ -178,10 +172,10 @@ static int scdata_db_final(DBKey k,void *d,va_list ap)
/*==========================================
* Final cleanup.
- *------------------------------------------
- */
+ *------------------------------------------*/
void status_final(void)
{
scdata_db->destroy(scdata_db, scdata_db_final);
}
+
#endif //ENABLE_SC_SAVING