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...

Bug #764956

Allow calling game_next_year() without side effects

Added by Jacob Nevins over 3 years ago. Updated over 3 years ago.

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

0%

Estimated time:

Description

For feature #764421, I want to calculate when the next year will be without actually advancing the game turn.

Currently, game_next_year() looks like a pure function but actually has side effects.

m-30-next-year-function.patch (2.84 KB) m-30-next-year-function.patch Jacob Nevins, 2018-07-14 11:32 AM
26-next-year-function.patch (2.87 KB) 26-next-year-function.patch Jacob Nevins, 2018-07-14 11:32 AM

Related issues

Blocks Freeciv - Feature #764421: Give notice of predictable game end (endturn, etc)Closed

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by Jacob Nevins over 3 years ago

  • Blocks Feature #764421: Give notice of predictable game end (endturn, etc) added

#2 Updated by Jacob Nevins over 3 years ago

This is a bit grotty because it involves passing a copy of packet_game_info around just for the calendar-related bits, whereas it would be nice to have those segregated in their own structure. But that's a bigger change that will probably touch the network protocol.

#3 Updated by Jacob Nevins over 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF