1 | /* |
1 | /* |
2 | CrossFire, A Multiplayer game for X-windows |
2 | CrossFire, A Multiplayer game for X-windows |
3 | |
3 | |
|
|
4 | Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team |
4 | Copyright (C) 2002-2005 Mark Wedel & Crossfire Development Team |
5 | Copyright (C) 2002-2005 Mark Wedel & Crossfire Development Team |
5 | Copyright (C) 1992 Frank Tore Johansen |
6 | Copyright (C) 1992 Frank Tore Johansen |
6 | |
7 | |
7 | This program is free software; you can redistribute it and/or modify |
8 | This program is free software; you can redistribute it and/or modify |
8 | it under the terms of the GNU General Public License as published by |
9 | it under the terms of the GNU General Public License as published by |
… | |
… | |
343 | if (!spaces) |
344 | if (!spaces) |
344 | do_load_sync (); |
345 | do_load_sync (); |
345 | } |
346 | } |
346 | |
347 | |
347 | static maptile *find_sync (const char *path, maptile *original = 0);//PERL |
348 | static maptile *find_sync (const char *path, maptile *original = 0);//PERL |
348 | static void emergency_save ();//PERL |
|
|
349 | |
349 | |
350 | mapspace const &at (uint32 x, uint32 y) const { return spaces [x * height + y]; } |
350 | mapspace const &at (uint32 x, uint32 y) const { return spaces [x * height + y]; } |
351 | mapspace &at (uint32 x, uint32 y) { return spaces [x * height + y]; } |
351 | mapspace &at (uint32 x, uint32 y) { return spaces [x * height + y]; } |
352 | }; |
352 | }; |
353 | |
353 | |