a2t.c: Move more code from A2REPLAY.PAS