Browse Source

* Defined out a problematic piece code in conv_num.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10843 54d463be-8e91-2dee-dedb-b68131a5f0ec
FlavioJS 18 years ago
parent
commit
f8e09d76d0
2 changed files with 5 additions and 0 deletions
  1. 1 0
      Changelog-Trunk.txt
  2. 4 0
      src/map/script.c

+ 1 - 0
Changelog-Trunk.txt

@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2007/07/03
+	* Defined out a problematic piece code in conv_num.
 	* Added reporting of constant and param script data.
 	* Fixed an incorrect check in menu script command. [FlavioJS]
 2007/07/02

+ 4 - 0
src/map/script.c

@@ -2376,6 +2376,9 @@ int conv_num(struct script_state* st, struct script_data* data)
 		data->type = C_INT;
 		data->u.num = (int)num;
 	}
+#if 0
+	// FIXME this function is being used to retrieve the position of labels and 
+	// probably other stuff [FlavioJS]
 	else
 	{// unsupported data type
 		ShowError("script:conv_num: cannot convert to number, defaulting to 0\n");
@@ -2384,6 +2387,7 @@ int conv_num(struct script_state* st, struct script_data* data)
 		data->type = C_INT;
 		data->u.num = 0;
 	}
+#endif
 	return data->u.num;
 }