@@ -20448,6 +20448,7 @@ void sexp_debug(int node)
2044820448 node = CDR(node);
2044920449 Assertion (node >= 0, "No message defined in debug SEXP");
2045020450 id = CTEXT(node);
20451+ strcpy_s(temp_buf, id);
2045120452
2045220453 for (i=0; i<Num_messages; i++) {
2045320454 // find the message
@@ -26184,10 +26185,8 @@ int query_operator_argument_type(int op, int argnum)
2618426185 case OP_DEBUG:
2618526186 if (argnum == 0) {
2618626187 return OPF_BOOL;
26187- }else if (argnum == 1) {
26188- return OPF_MESSAGE;
26189- }else {
26190- return OPF_STRING;
26188+ } else {
26189+ return OPF_MESSAGE_OR_STRING;
2619126190 }
2619226191
2619326192 case OP_HAS_TIME_ELAPSED:
@@ -31662,8 +31661,8 @@ sexp_help_struct Sexp_help[] = {
3166231661 { OP_DEBUG, "debug\r\n"
3166331662 "\tPops up a warning on debug builds (and optionally on release builds)\r\n"
3166431663 "Takes 1 or more arguments...\r\n"
31665- "\t1:\t If false, popup messages in release builds too. Defaults to true.\r\n"
31666- "\t2:\tName of a message which will appear in the warning (optional) \r\n"},
31664+ "\t1:\tLimit warning to debug builds. If false, display warning in release builds too. Defaults to true.\r\n"
31665+ "\t2:\tA short string which will appear in the warning, or a message if the string matches a message name. \r\n"},
3166731666
3166831667 { OP_GRANT_PROMOTION, "Grant promotion (Action operator)\r\n"
3166931668 "\tIn a single player game, this function grants a player an automatic promotion to the "
@@ -31732,7 +31731,7 @@ sexp_help_struct Sexp_help[] = {
3173231731 "have scanned each one.\r\n\r\n"
3173331732 "Returns a boolean value after <delay> seconds when all cargo is known. Takes 2 or more arguments...\r\n"
3173431733 "\t1:\tDelay in seconds after which sexpression will return true when all cargo scanned."
31735- "\tRest:\tNames of ships/cargo to check for cargo known.. " },
31734+ "\tRest:\tNames of ships/cargo to check for cargo known." },
3173631735
3173731736 { OP_WAS_PROMOTION_GRANTED, "Was promotion granted (Boolean operator)\r\n"
3173831737 "\tReturns true if a promotion was granted via the 'Grant promotion' operator in the mission.\r\n\r\n"
0 commit comments