ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/define.h
(Generate patch)

Comparing deliantra/server/include/define.h (file contents):
Revision 1.43 by root, Thu Jan 18 22:20:00 2007 UTC vs.
Revision 1.44 by root, Sat Jan 20 22:09:52 2007 UTC

1/* 1/*
2 * CrossFire, A Multiplayer game for X-windows 2 * CrossFire, A Multiplayer game
3 * 3 *
4 * Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team 4 * Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team
5 * Copyright (C) 2003-2005 Mark Wedel & Crossfire Development Team 5 * Copyright (C) 2003-2005 Mark Wedel & Crossfire Development Team
6 * Copyright (C) 1992 Frank Tore Johansen 6 * Copyright (C) 1992 Frank Tore Johansen
7 * 7 *
32 */ 32 */
33 33
34#ifndef DEFINE_H 34#ifndef DEFINE_H
35#define DEFINE_H 35#define DEFINE_H
36 36
37/*
38 * Crossfire requires ANSI-C, but some compilers "forget" to define it.
39 * Thus the prototypes made by cextract don't get included correctly.
40 */
41#if !defined(__STDC__)
42
43/* Removed # from start of following line. makedepend was picking it up.
44 * The following should still hopefully result in an error.
45 */
46error - Your ANSI C compiler should be defining __STDC__;
47#endif
48
49#include <autoconf.h> 37#include <autoconf.h>
50 38
51#define FONTDIR "" 39#define FONTDIR ""
52#define FONTNAME "" 40#define FONTNAME ""
53 41
54/* Decstations have trouble with fabs()... */ 42/* Decstations have trouble with fabs()... */
55#define FABS(x) ((x)<0?-(x):(x)) 43#define FABS(x) fabs (x)
56 44
57#ifdef __NetBSD__ 45#ifdef __NetBSD__
58# include <sys/param.h> 46# include <sys/param.h>
59#endif 47#endif
60#ifndef MIN 48#ifndef MIN
587#define FLAG_IS_WATER 107 575#define FLAG_IS_WATER 107
588#define FLAG_CONTENT_ON_GEN 108 576#define FLAG_CONTENT_ON_GEN 108
589#define FLAG_IS_A_TEMPLATE 109 /* Object has no ingame life until instanciated */ 577#define FLAG_IS_A_TEMPLATE 109 /* Object has no ingame life until instanciated */
590#define FLAG_IS_BUILDABLE 110 /* Can build on item */ 578#define FLAG_IS_BUILDABLE 110 /* Can build on item */
591#define FLAG_DESTROY_ON_DEATH 111 /* Object will be destroyed when env dies */ 579#define FLAG_DESTROY_ON_DEATH 111 /* Object will be destroyed when env dies */
592#define FLAG_NO_SAVE 112 // item doesn't get saved with map 580#define FLAG_NO_MAP_SAVE 112 // item doesn't get saved with map
593 581
594#define NUM_FLAGS 113 /* Should always be equal to the last 582#define NUM_FLAGS 113 /* Should always be equal to the last
595 * defined flag + 1. If you change this, 583 * defined flag + 1. If you change this,
596 * make sure you update the flag_links 584 * make sure you update the flag_links
597 * in common/loader.l 585 * in common/loader.l

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines