The country has been gripped by a record-setting heat wave that endangered both players and spectators.