summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-23 21:52:55 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-23 21:52:55 +0000
commitae093dbdc0e90c640d22e7d3c027ce0288e8625e (patch)
tree90a2611205ea7d4deb6b1c961233036e94cd6d2e /src/map/script.c
parent2c5fabbc0b492cb5456e670ce9eb2352a11d5e3b (diff)
downloadhercules-ae093dbdc0e90c640d22e7d3c027ce0288e8625e.tar.gz
hercules-ae093dbdc0e90c640d22e7d3c027ce0288e8625e.tar.bz2
hercules-ae093dbdc0e90c640d22e7d3c027ce0288e8625e.tar.xz
hercules-ae093dbdc0e90c640d22e7d3c027ce0288e8625e.zip
Made some more changes, reverted some old ones
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@969 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 35645eaab..083f3cfd1 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -1148,7 +1148,7 @@ static void read_constdb(void)
* スクリプトの解析
*------------------------------------------
*/
-unsigned char* parse_script(unsigned char *src,int line)
+char* parse_script(unsigned char *src,int line)
{
unsigned char *p,*tmpp;
int i;
@@ -6875,7 +6875,7 @@ int run_func(struct script_state *st)
* スクリプトの実行メイン部分
*------------------------------------------
*/
-int run_script_main(unsigned char *script,int pos,int rid,int oid,struct script_state *st,unsigned char *rootscript)
+int run_script_main(char *script,int pos,int rid,int oid,struct script_state *st,char *rootscript)
{
int c,rerun_pos;
int cmdcount=script_config.check_cmdcount;
@@ -7009,17 +7009,17 @@ int run_script_main(unsigned char *script,int pos,int rid,int oid,struct script_
* スクリプトの実行
*------------------------------------------
*/
-int run_script(unsigned char *script,int pos,int rid,int oid)
+int run_script(char *script,int pos,int rid,int oid)
{
struct script_stack stack;
struct script_state st;
struct map_session_data *sd=map_id2sd(rid);
- unsigned char *rootscript=script;
+ char *rootscript=script;
if(script==NULL || pos<0)
return -1;
- if(sd && sd->npc_stackbuf && sd->npc_scriptroot==(char*)rootscript){
+ if(sd && sd->npc_stackbuf && sd->npc_scriptroot==rootscript){
// 前回のスタックを復帰
script=sd->npc_script;
stack.sp=sd->npc_stack;