Nope, that's the exact contrary of what I said @Wildcard. Floating hooks are out of functions and I don't need to globalize vars to use them, but floating != by reference. Function hooks == by reference.
@Cedric: MFC has been working fine so far.
(2014-04-08, 07:33 PM)Shade Wrote: [ -> ]Nope, that's the exact contrary of what I said @Wildcard.
I know.
(2014-04-08, 07:33 PM)Shade Wrote: [ -> ]Floating hooks are out of functions and I don't need to globalize vars to use them, but floating != by reference. Function hooks == by reference.
All hooks are in functions. Period. No hook is different, because a hook is a placeholder for a function call. Thus any variables that are not passed to the function call marked by the hook by reference will need to be globalized. There are no exceptions.