1 | /* |
1 | /* |
2 | * CrossFire, A Multiplayer game |
2 | * This file is part of Crossfire TRT, the Roguelike Realtime MORPG. |
3 | * |
3 | * |
4 | * Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team |
4 | * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team |
5 | * |
5 | * |
6 | * This program is free software; you can redistribute it and/or modify |
6 | * Crossfire TRT is free software: you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License as published by |
7 | * it under the terms of the GNU General Public License as published by |
8 | * the Free Software Foundation; either version 2 of the License, or |
8 | * the Free Software Foundation, either version 3 of the License, or |
9 | * (at your option) any later version. |
9 | * (at your option) any later version. |
10 | * |
10 | * |
11 | * This program is distributed in the hope that it will be useful, |
11 | * This program is distributed in the hope that it will be useful, |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | * GNU General Public License for more details. |
14 | * GNU General Public License for more details. |
15 | * |
15 | * |
16 | * You should have received a copy of the GNU General Public License |
16 | * You should have received a copy of the GNU General Public License |
17 | * along with this program; if not, write to the Free Software |
17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|
|
19 | * |
18 | * |
20 | * The authors can be reached via e-mail at <crossfire@schmorp.de> |
19 | * The authors can be reached via e-mail to <crossfire@schmorp.de> |
21 | */ |
20 | */ |
22 | |
21 | |
23 | /* |
22 | /* |
24 | * shstr.C |
23 | * shstr.C |
25 | */ |
24 | */ |
… | |
… | |
127 | } |
126 | } |
128 | |
127 | |
129 | curpos = *i; |
128 | curpos = *i; |
130 | } |
129 | } |
131 | |
130 | |
|
|
131 | // declare these here to get correct initialisation order |
|
|
132 | #define def(str) const shstr shstr_ ## str (# str); |
|
|
133 | # include "shstrinc.h" |
|
|
134 | #undef def |
|
|
135 | |
132 | shstr skill_names[NUM_SKILLS]; |
136 | shstr skill_names[NUM_SKILLS]; |
133 | |
|
|
134 | // what weird misoptimisation is this again? |
|
|
135 | const shstr undead_name ("undead"); |
|
|
136 | |
137 | |
137 | //TODO: this should of course not be here |
138 | //TODO: this should of course not be here |
138 | |
139 | |
139 | /* buf_overflow() - we don't want to exceed the buffer size of |
140 | /* buf_overflow() - we don't want to exceed the buffer size of |
140 | * buf1 by adding on buf2! Returns true if overflow will occur. |
141 | * buf1 by adding on buf2! Returns true if overflow will occur. |