Changed the order of the hooked function to mirror the way it is structured in the broodwar source code.