 |
|
Member
|

09-02-2022
, 16:22
Re: Trying to Understand #define Macros values in War3TFT
|
#6
|
Like I said above, each task needs a specific ID in order to check if it exists/remove it. If you define TASK_LIGHTING as 960, then tasks 961,962,963...992 will be the tasks responsible for creating lighting for players number 1,2,3...32. It's just an assigned ID, changing it won't affect the lighting or the function execution at all, as long as you make sure that no other constant is defined within 32 more or 32 less integers. Say you have another task defined at 950, then tasks 961(960+1)->982(950+32) will be shared between 2 functionalities. So when you try to remove lighting for a player, you accidentally remove say sound effects for another.
If it's still unclear at this point, just take my word for it and don't touch that file, best case scenario nothing will change, worst case you will break that plugin.
|
|
|
|