Skip to content

Commit

Permalink
Engine: removed MoveCharacterToHotspot from script api exports
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-mogilko committed Jan 20, 2025
1 parent 8826e6f commit 0c876f1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions Engine/ac/global_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,12 +629,6 @@ RuntimeScriptValue Sc_IsVoxAvailable(const RuntimeScriptValue *params, int32_t p
API_SCALL_INT(IsVoxAvailable);
}

// void (int chaa,int hotsp)
RuntimeScriptValue Sc_MoveCharacterToHotspot(const RuntimeScriptValue *params, int32_t param_count)
{
API_SCALL_VOID_PINT2(MoveCharacterToHotspot);
}

// void (int objj,int xx,int yy,int spp)
RuntimeScriptValue Sc_MoveObject(const RuntimeScriptValue *params, int32_t param_count)
{
Expand Down Expand Up @@ -1267,7 +1261,6 @@ void RegisterGlobalAPI(ScriptAPIVersion base_api, ScriptAPIVersion /*compat_api*
{ "IsTimerExpired", API_FN_PAIR(IsTimerExpired) },
{ "IsTranslationAvailable", API_FN_PAIR(IsTranslationAvailable) },
{ "IsVoxAvailable", API_FN_PAIR(IsVoxAvailable) },
{ "MoveCharacterToHotspot", API_FN_PAIR(MoveCharacterToHotspot) },
{ "MoveObject", API_FN_PAIR(MoveObject) },
{ "MoveObjectDirect", API_FN_PAIR(MoveObjectDirect) },
{ "MoveSaveSlot", API_FN_PAIR(MoveSaveSlot) },
Expand Down
1 change: 1 addition & 0 deletions Engine/ac/global_character.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ void StopMoving(int chaa);
void ReleaseCharacterView(int chat);
int GetCharacterWidth(int ww);
int GetCharacterHeight(int charid);
// CLNUP: this exists only because it's used to walk character to hotspot's WalkX/Y
void MoveCharacterToHotspot(int chaa,int hotsp);

void RunCharacterInteraction (int cc, int mood);// [DEPRECATED]
Expand Down

0 comments on commit 0c876f1

Please sign in to comment.