--- deliantra/server/include/network.h 2009/11/05 15:57:16 1.25 +++ deliantra/server/include/network.h 2011/04/23 04:56:49 1.31 @@ -1,9 +1,9 @@ /* * This file is part of Deliantra, the Roguelike Realtime MMORPG. * - * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team - * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team - * Copyright (©) 1992,2007 Frank Tore Johansen + * Copyright (©) 2005,2006,2007,2008,2009,2010,2011 Marc Alexander Lehmann / Robin Redeker / the Deliantra team + * Copyright (©) 2002 Mark Wedel & Crossfire Development Team + * Copyright (©) 1992 Frank Tore Johansen * * Deliantra is free software: you can redistribute it and/or modify it under * the terms of the Affero GNU General Public License as published by the @@ -40,7 +40,6 @@ * talking about the same values. */ - #ifndef NETWORK_H #define NETWORK_H @@ -48,6 +47,8 @@ #include +#include "compiler.h" + /* Maximum size of any packet we expect. * * The size must be the same in the server and the client (stupid). @@ -121,22 +122,6 @@ #define CS_STAT_RES_HOLYWORD 116 #define CS_STAT_RES_BLIND 117 -/* Start & end of skill experience + skill level, inclusive. */ -#define CS_STAT_SKILLEXP_START 118 -#define CS_STAT_SKILLEXP_END 129 -#define CS_STAT_SKILLEXP_AGILITY 118 -#define CS_STAT_SKILLEXP_AGLEVEL 119 -#define CS_STAT_SKILLEXP_PERSONAL 120 -#define CS_STAT_SKILLEXP_PELEVEL 121 -#define CS_STAT_SKILLEXP_MENTAL 122 -#define CS_STAT_SKILLEXP_MELEVEL 123 -#define CS_STAT_SKILLEXP_PHYSIQUE 124 -#define CS_STAT_SKILLEXP_PHLEVEL 125 -#define CS_STAT_SKILLEXP_MAGIC 126 -#define CS_STAT_SKILLEXP_MALEVEL 127 -#define CS_STAT_SKILLEXP_WISDOM 128 -#define CS_STAT_SKILLEXP_WILEVEL 129 - /* CS_STAT_SKILLINFO is used as the starting index point. Skill number->name * map is generated dynamically for the client, so a bunch of entries will * be used here. CS_NUM_SKILLS does not match how many skills there really @@ -193,7 +178,7 @@ /* The flag values sent by the updspell command */ #define UPD_SP_MANA 0x01 #define UPD_SP_GRACE 0x02 -#define UPD_SP_DAMAGE 0x04 +#define UPD_SP_LEVEL 0x04 // was UPD_SP_DAMAGE in <= server 2.93, client 2.10 #define SOUND_NORMAL 0 #define SOUND_SPELL 1 @@ -303,7 +288,7 @@ void vprintf (const char *format, va_list ap); - void printf (const char *format, ...) + void printf (const char *format, ...) attribute ((format (printf, 2, 3))) { va_list ap; va_start (ap, format);