Rename CONNECT_ONESHOT TO CONNECT_ONE_SHOT

For consistency. Every other exposed `one_shot` is spaced out like this.
This commit is contained in:
Micky 2022-09-01 15:44:42 +02:00
parent 0c4d578bdf
commit dd26ecdd31
18 changed files with 27 additions and 26 deletions

View file

@ -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;