[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/unit unit.c
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src/unit unit.c |
Date: |
1 Feb 2004 05:35:58 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 04/02/01 05:35:58
Modified files:
src/unit : unit.c
Log message:
Added #ifdef DYNAMIC_LOAD
Patches:
Index: stratagus/src/unit/unit.c
diff -u stratagus/src/unit/unit.c:1.385 stratagus/src/unit/unit.c:1.386
--- stratagus/src/unit/unit.c:1.385 Sat Jan 31 17:56:39 2004
+++ stratagus/src/unit/unit.c Sun Feb 1 05:35:57 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: unit.c,v 1.385 2004/01/31 06:56:39 wizzard Exp $
+// $Id: unit.c,v 1.386 2004/01/31 18:35:57 jsalmon3 Exp $
//@{
@@ -2853,9 +2853,11 @@
type->TileHeight !=
type->CorpseType->TileHeight);
type = unit->Type = type->CorpseType;
+#ifdef DYNAMIC_LOAD
if (!type->Sprite) {
LoadUnitTypeSprite(type);
}
+#endif
unit->IX = (type->Width -
VideoGraphicWidth(type->Sprite)) / 2;
unit->IY = (type->Height -
VideoGraphicHeight(type->Sprite)) / 2;
@@ -3785,7 +3787,7 @@
int j;
CLprintf(file, "\n--- -----------------------------------------\n");
- CLprintf(file, "--- MODULE: units $Id: unit.c,v 1.385 2004/01/31
06:56:39 wizzard Exp $\n\n");
+ CLprintf(file, "--- MODULE: units $Id: unit.c,v 1.386 2004/01/31
18:35:57 jsalmon3 Exp $\n\n");
#if 0
//