sentence: after two hours of fierce but one-sided fighting , and with several fatal casualties on deck , the artillery damaged , without ammunition , and having lost the telegraph and the ship 's engine , the portuguese ship surrender by lowering the national flag and raising a white flag .