瀏覽代碼

Fixed a useless warning for PACKETVER < 20141016 (#5519)

Fixes #5515

Thanks to @joven15 and @Patotron
Lemongrass3110 4 年之前
父節點
當前提交
765b6a8ed2
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/char/char.cpp

+ 4 - 1
src/char/char.cpp

@@ -849,7 +849,7 @@ bool char_memitemdata_from_sql(struct s_storage* p, int max, int id, enum storag
 /**
  * Returns the correct gender ID for the given character and enum value.
  *
- * If the per-character sex is defined but not supported by the current packetver, the database entries are corrected.
+ * If the per-character sex is defined but not supported by the current packetver, the account gender is returned.
  *
  * @param sd Character data, if available.
  * @param p  Character status.
@@ -883,7 +883,10 @@ int char_mmo_gender( const struct char_session_data *sd, const struct mmo_charst
 				}
 			}
 
+#if PACKETVER >= 20141016
 			ShowWarning( "Found unknown gender '%c' for character '%s' (CID: %d, AID: %d), returning account gender...\n", sex, p->name, p->char_id, p->account_id );
+#endif
+
 			return sd->sex;
 	}
 }