Explorar el Código

Merged to master
* Fixed various compile warnings/errors.

aleos89 hace 9 años
padre
commit
5c3c7b04d4
Se han modificado 3 ficheros con 4 adiciones y 9 borrados
  1. 0 1
      conf/char_athena.conf
  2. 0 4
      src/char/char.c
  3. 4 4
      src/map/log.c

+ 0 - 1
conf/char_athena.conf

@@ -262,7 +262,6 @@ party_table: party
 pet_table: pet
 quest_table: quest
 ragsrvinfo_table: ragsrvinfo
-reg_table: global_reg_value
 scdata_table: sc_data
 skill_table: skill
 skillcooldown_table: skillcooldown

+ 0 - 4
src/char/char.c

@@ -2893,9 +2893,6 @@ bool char_config_read(const char* cfgName, bool normal){
 	return true;
 }
 
-<<<<<<< HEAD
-=======
-
 static void char_schema_config_init(void) {
 	// Character related tables
 	schema_config.char_table			 = StringBuf_FromStr("char");
@@ -2987,7 +2984,6 @@ static void char_schema_config_final(void) {
 	StringBuf_Free(schema_config.interlog_table);
 }
 
->>>>>>> * Various server config cleanups
 /*
  * Message conf function
  */

+ 4 - 4
src/map/log.c

@@ -555,11 +555,11 @@ void log_feeding(struct map_session_data *sd, e_log_feeding_type type, unsigned
 		char entry[512];
 		int e_length = 0;
 		e_length = sprintf(entry, LOG_QUERY " INTO `%s` (`time`, `char_id`, `target_id`, `target_class`, `type`, `intimacy`, `item_id`, `map`, `x`, `y`) VALUES ( NOW(), '%"PRIu32"', '%"PRIu32"', '%hu', '%c', '%"PRIu32"', '%hu', '%s', '%hu', '%hu' )",
-			log_config.log_feeding, sd->status.char_id, target_id, target_class, log_feedingtype2char(type), intimacy, nameid, mapindex_id2name(sd->mapindex), sd->bl.x, sd->bl.y);
+			StringBuf_Value(log_config.schema.feeding_table), sd->status.char_id, target_id, target_class, log_feedingtype2char(type), intimacy, nameid, mapindex_id2name(sd->mapindex), sd->bl.x, sd->bl.y);
 		queryThread_log(entry, e_length);
 #else
 		if (SQL_ERROR == Sql_Query(logmysql_handle, LOG_QUERY " INTO `%s` (`time`, `char_id`, `target_id`, `target_class`, `type`, `intimacy`, `item_id`, `map`, `x`, `y`) VALUES ( NOW(), '%"PRIu32"', '%"PRIu32"', '%hu', '%c', '%"PRIu32"', '%hu', '%s', '%hu', '%hu' )",
-			log_config.log_feeding, sd->status.char_id, target_id, target_class, log_feedingtype2char(type), intimacy, nameid, mapindex_id2name(sd->mapindex), sd->bl.x, sd->bl.y))
+			StringBuf_Value(log_config.schema.feeding_table), sd->status.char_id, target_id, target_class, log_feedingtype2char(type), intimacy, nameid, mapindex_id2name(sd->mapindex), sd->bl.x, sd->bl.y))
 		{
 			Sql_ShowDebug(logmysql_handle);
 			return;
@@ -570,10 +570,10 @@ void log_feeding(struct map_session_data *sd, e_log_feeding_type type, unsigned
 		time_t curtime;
 		FILE* logfp;
 
-		if ((logfp = fopen(log_config.log_feeding, "a")) == NULL)
+		if ((logfp = fopen(StringBuf_Value(log_config.schema.feeding_table), "a")) == NULL)
 			return;
 		time(&curtime);
-		strftime(timestring, sizeof(timestring), log_timestamp_format, localtime(&curtime));
+		strftime(timestring, sizeof(timestring), StringBuf_Value(log_config.log_timestamp), localtime(&curtime));
 		fprintf(logfp, "%s - %s[%d]\t%d\t%d(%c)\t%d\t%hu\t%s\t%hu,%hu\n", timestring, sd->status.name, sd->status.char_id, target_id, target_class, log_feedingtype2char(type), intimacy, nameid, mapindex_id2name(sd->mapindex), sd->bl.x, sd->bl.y);
 		fclose(logfp);
 	}