Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. "Read more...":https://support.plan.io/news/187

Bug #772516

closed

server crash when marine unit captured by land unit

Added by Gyubal Wahazar over 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Server
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

I added "Capturable" flag to some transport ships, and now they can be captured by land unit
(either if close to the shore, or from aboard if land unit class have non-native flags on).
Noteworthy is, that after successful capture, land units doesn't enter aboard captured ship.

Unfortunately, it works well only for empty transport ships. If ship is loaded, it cause server crash with the following message:

1: in create_unit_full() [../../../../server/unittools.c::1581]: assertion '!ptile || can_unit_exist_at_tile(punit, ptile)' failed.

I checked also case with capturing land units, which can carry other units: whole stack is captured.
Maybe it is a bug - loaded unit should not to be captured, as stacked units are.


Files

Actions #1

Updated by Marko Lindqvist over 4 years ago

  • Tracker changed from Task to Bug
Actions #4

Updated by Marko Lindqvist almost 4 years ago

  • Status changed from Resolved to Closed
  • Assignee set to Marko Lindqvist

Also available in: Atom PDF