Still a vassal of Charles X Gustav for Prussia , Frederick William I entered the war .
The combined Swedish - Brandenburgian forces defeated the Polish army in the Battle of Warsaw in July .
Still a vassal of Charles X Gustav for Prussia , Frederick William I entered the war and the combined Swedish - Brandenburgian forces defeated the Polish army in the Battle of Warsaw in July .