You have to get close to see the flag.
Then, in the periscope view use the lower-left (in the corner) flag you drag and check if the flag you see on the ship is neutral, allied or enemy before shooting.
On my last patrol I sunk a 6k tons norwegian cargo in january 1940 and they were neutral, that costed me 150 renown :p
|