Remove seafaring checkbox on map save, calculate seafaring tag automatically

Bug #1449420 reported by TiborB
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Wishlist
Unassigned

Bug Description

The seafaring map tag in map file should be set automatically, not by user clicking on a checkbox - when editing (saving) the map.

I think map should be scanned for portspaces, and if any found just set the flag on. Of course this check is not 100 % reliable.

Related branches

Revision history for this message
GunChleoc (gunchleoc) wrote :

Thanks for filing the bug.

We should only do this if we can make it 100% reliable - why is this not reliable?

Revision history for this message
TiborB (tiborb95) wrote :

Because if player sets only one portspace by mistake, the map will be recognized as seafaring - but in fact no seafaring will be possible. But on the other side, also user can make a mistake and mark a map without ports as seafaring map.

Revision history for this message
GunChleoc (gunchleoc) wrote :

So the automated check will have to look for at least 2 port spaces then instead of just one. So, it's doable. :)

Changed in widelands:
status: New → Confirmed
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

I assume it should also automatically remove the tag if I remove all* port spaces from a seafaring map.

Sounds like a nice simplification.

*or all except one

Changed in widelands:
importance: Undecided → Medium
importance: Medium → Wishlist
tags: added: editor
summary: - Remov seafaring checkbox on map save
+ Remove seafaring checkbox on map save, calculate seafaring tag
+ automatically
GunChleoc (gunchleoc)
Changed in widelands:
status: Confirmed → Fix Committed
milestone: none → build19-rc1
GunChleoc (gunchleoc)
Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.