General - Various small code fixes#11144
Conversation
|
What is best way to handle this returns number if called early |
|
Typically BIS fncs return nil for such cases IIRC |
| _data params ["", "", "", "_eventId"]; | ||
|
|
||
| [_eventId] call CBA_fnc_removeEventHandler; | ||
| [_name, _eventId] call CBA_fnc_removeEventHandler; |
There was a problem hiding this comment.
this function has never worked, we could also just remove it
There was a problem hiding this comment.
Deprecate, remove in next major version?
There was a problem hiding this comment.
I guess it's not doing much harm
I was more worried it could cause problems if people had been calling and it starts working
but I guess we'll find out
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
| To keep the syntax in the header consistent, we set some rules: | ||
| 1. Each argument must have a type that is enclosed in brackets `<TYPE>`. The type must be in UPPERCASE. | ||
| 2. Use one of the following types only: `OBJECT`, `NUMBER`, `STRING`, `BOOL`, `ARRAY`, `CONTROL`, `DISPLAY`, `CONFIG`, `CODE`, `ANY`, `LOGIC`, `SIDE`, `GROUP`, `HASHMAP`, `NAMESPACE`, `LOCATION`, `TEXT`. | ||
| 2. Use one of the following types only: `OBJECT`, `NUMBER`, `STRING`, `BOOL`, `ARRAY`, `CONTROL`, `DISPLAY`, `CONFIG`, `CODE`, `ANY`, `SIDE`, `GROUP`, `HASHMAP`, `NAMESPACE`, `LOCATION`, `STRUCTUREDTEXT`, `NIL`. |
There was a problem hiding this comment.
removed logic (just object)
TEXT -> STRUCTUREDTEXT
added nil
There was a problem hiding this comment.
Could we deprecate this maybe? I think most people who care are going to use their preferred AI mod's garrison function
There was a problem hiding this comment.
ace_zeus_fnc_moduleGarrison uses this
as far as I know it works ok, so I would prefer to keep it
| _data params ["", "", "", "_eventId"]; | ||
|
|
||
| [_eventId] call CBA_fnc_removeEventHandler; | ||
| [_name, _eventId] call CBA_fnc_removeEventHandler; |
There was a problem hiding this comment.
Deprecate, remove in next major version?
ref BrettMayson/HEMTT#1136