AGS: Move script.cpp globals into Globals

This commit is contained in:
Paul Gilbert 2021-02-28 15:07:54 -08:00
parent c3d96c399c
commit b6dd902163
29 changed files with 380 additions and 409 deletions

View file

@ -291,11 +291,11 @@ void debug_script_print(const String &msg, MessageType mt) {
ccInstance *curinst = ccInstance::GetCurrentInstance();
if (curinst != nullptr) {
String scriptname;
if (curinst->instanceof == gamescript)
if (curinst->instanceof == _GP(gamescript))
scriptname = "G ";
else if (curinst->instanceof == _GP(thisroom).CompiledScript)
scriptname = "R ";
else if (curinst->instanceof == dialogScriptsScript)
else if (curinst->instanceof == _GP(dialogScriptsScript))
scriptname = "D ";
else
scriptname = "? ";