version 1.4 | | version 1.5 |
---|
| | |
| | /* |
| | * static char *rcsid_map_c = |
| | * "$Id: CrEdit.c,v 1.5 2001/10/07 06:45:39 mwedel Exp $"; |
| | */ |
| | |
| | /* |
| | CrossFire, A Multiplayer game for X-windows |
| | |
| | Copyright (C) 2001 Mark Wedel & Crossfire Development Team |
| | Copyright (C) 1992 Frank Tore Johansen |
| | |
| | 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 of the License, 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. |
| | |
| | You should have received a copy of the GNU General Public License |
| | along with this program; if not, write to the Free Software |
| | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| | |
| | The authors can be reached via e-mail at crossfire-devel@real-time.com |
| | */ |
| | |
#include "Defines.h" | | #include "Defines.h" |
#include "Ansi.h" | | #include "Ansi.h" |
| | |
FaceDraw (w, self->crEdit.gc, f, | | FaceDraw (w, self->crEdit.gc, f, |
x * self->crEdit.fontSize, | | x * self->crEdit.fontSize, |
y * self->crEdit.fontSize); | | y * self->crEdit.fontSize); |
| | f = GET_MAP_FACE(self->crEdit.map, x, y,0); |
| | if ((f) && f->number != blank_face->number) |
| | FaceDraw (w, self->crEdit.gc, f, |
| | x * self->crEdit.fontSize, |
| | y * self->crEdit.fontSize); |
} | | } |
op=get_map_ob(self->crEdit.map, x, y); | | op=get_map_ob(self->crEdit.map, x, y); |
while (op && op->above) op=op->above; | | while (op && op->above) op=op->above; |