Complex sentence: If the French had attacked quickly then even this would not have helped but due to the delay the Spanish had time to improve the fortifications and obtain sufficient supplies.
Split into simpler sentences: If the French had attacked quickly, then even this would not have helped. Due to the delay, however, the Spanish had time to improve the fortifications and obtain sufficient supplies.