Stop sharing requirement_unit_state_ereq().
[freeciv.git] / common / victory.c
blob29786d5ab6f8f9cba2d7417352b57adca0e597bf
1 /****************************************************************************
2 Freeciv - Copyright (C) 2004 - The Freeciv Team
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ****************************************************************************/
14 #ifdef HAVE_CONFIG_H
15 #include <fc_config.h>
16 #endif
18 /* common */
19 #include "game.h"
21 #include "victory.h"
23 /****************************************************************************
24 Whether victory condition is enabled
25 ****************************************************************************/
26 bool victory_enabled(enum victory_condition_type victory)
28 return (game.info.victory_conditions & (1 << victory));