Skip to content

Strings inside literals #8

@burner1024

Description

@burner1024

I got this diff

--- scripts_pre/dcanna.ssl	2020-04-04 21:15:45.076130402 +0700
+++ scripts_post/dcanna.ssl	2020-04-04 21:15:49.164016004 +0700
@@ -159,7 +159,7 @@
 	else begin
 		if (obj_is_carrying_obj_pid(self_obj, 252) > 0) then begin
 			debug_msg("dcanna" + ": " + "setting DESTROY_ANNA" + "\n");
-			debug_msg("dcanna" + ": " + " obj_is_carrying_obj_pid(self_obj, PID_ANNA_GOLD_LOCKET) == " + obj_is_carrying_obj_pid(self_obj, 252) + "\n");
+			debug_msg("dcanna" + ": " + " self_item_count(PID_ANNA_GOLD_LOCKET) == " + obj_is_carrying_obj_pid(self_obj, 252) + "\n");
 			debug_msg("dcanna" + ": " + "SETTING DESTROY ANNA" + "\n");
 			set_local_var(4, local_var(4) bwor 512);
 		end

As you can see, ReDefine processed the define inside string. It's harmless, but probably unwanted?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions