Rename CONNECT_ONESHOT TO CONNECT_ONE_SHOT
For consistency. Every other exposed `one_shot` is spaced out like this.
This commit is contained in:
@ -2163,7 +2163,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
|
||||
OPCODE(OPCODE_AWAIT) {
|
||||
CHECK_SPACE(2);
|
||||
|
||||
// Do the oneshot connect.
|
||||
// Do the one-shot connect.
|
||||
GET_INSTRUCTION_ARG(argobj, 0);
|
||||
|
||||
Signal sig;
|
||||
@ -2234,7 +2234,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
|
||||
|
||||
retvalue = gdfs;
|
||||
|
||||
Error err = sig.connect(Callable(gdfs.ptr(), "_signal_callback").bind(retvalue), Object::CONNECT_ONESHOT);
|
||||
Error err = sig.connect(Callable(gdfs.ptr(), "_signal_callback").bind(retvalue), Object::CONNECT_ONE_SHOT);
|
||||
if (err != OK) {
|
||||
err_text = "Error connecting to signal: " + sig.get_name() + " during await.";
|
||||
OPCODE_BREAK;
|
||||
|
||||
Reference in New Issue
Block a user