Most restaurants will ensure that it still goes to the wait staff, but instead of directly to your server, it is likely to be shared amongst all of the employees equally; this is often done to keep all employees happy, even if they didn't perform as well as their colleagues.