AGS: Move script.cpp globals into Globals
This commit is contained in:
parent
c3d96c399c
commit
b6dd902163
29 changed files with 380 additions and 409 deletions
|
@ -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 = "? ";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue