This code is essentially a quick hack, with numerous stylistic inconsistances and other issues. The "#define"s are legacy code - the command IDs could certainly be an enum, etc. Variable names are ...
When he’s not endlessly debating what the best laptop is, Luke spends his days being a dad and a husband. Oh, and when there’s time (which there isn’t), he’s an avid fiction writer, player of designer ...