Readded max of ref entities could be changed with REFENTITYNUM_BITS and max of effects could be changed with MAX_EFFECTS credits to ent for his help here once again
fixed some int64_t stuff there was missing, now we can have a lot more effects on the screen :)