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

Feature #804721 ยป 0025-Replace-magic-number-of-turns-war-mood-lasts-with-a-.patch

Marko Lindqvist, 2019-02-27 05:09 AM

View differences:

server/mood.c
**************************************************************************/
enum mood_type player_mood(struct player *pplayer)
{
if (pplayer->last_war_action >= 0 && pplayer->last_war_action + 10 >= game.info.turn) {
if (pplayer->last_war_action >= 0
&& pplayer->last_war_action + WAR_MOOD_LASTS >= game.info.turn) {
players_iterate(other) {
struct player_diplstate *us, *them;
server/mood.h
/**********************************************************************
/***********************************************************************
Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
#ifndef FC__MOOD_H
#define FC__MOOD_H
/* How many turns after latest combat war mood lasts */
#define WAR_MOOD_LASTS 10
enum mood_type player_mood(struct player *pplayer);
#endif /* FC__MOOD_H */
    (1-1/1)