File: victory.c

package info (click to toggle)
freeciv 2.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 211,412 kB
  • sloc: ansic: 442,905; cpp: 29,161; sh: 15,128; makefile: 7,886; python: 1,933; xml: 945
file content (29 lines) | stat: -rw-r--r-- 1,111 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/****************************************************************************
 Freeciv - Copyright (C) 2004 - The Freeciv Team
   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
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
****************************************************************************/

#ifdef HAVE_CONFIG_H
#include <fc_config.h>
#endif

/* common */
#include "game.h"

#include "victory.h"

/****************************************************************************
  Whether victory condition is enabled
****************************************************************************/
bool victory_enabled(enum victory_condition_type victory)
{
  return (game.info.victory_conditions & (1 << victory));
}