[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/unit unitcache.c
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src/unit unitcache.c |
Date: |
15 Jan 2004 11:56:30 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 04/01/15 11:56:29
Modified files:
src/unit : unitcache.c
Log message:
Fixed compile error
Patches:
Index: stratagus/src/unit/unitcache.c
diff -u stratagus/src/unit/unitcache.c:1.42 stratagus/src/unit/unitcache.c:1.43
--- stratagus/src/unit/unitcache.c:1.42 Thu Jan 15 10:17:29 2004
+++ stratagus/src/unit/unitcache.c Thu Jan 15 11:56:29 2004
@@ -30,7 +30,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: unitcache.c,v 1.42 2004/01/14 23:17:29 nobody_ Exp $
+// $Id: unitcache.c,v 1.43 2004/01/15 00:56:29 jsalmon3 Exp $
//@{
@@ -82,9 +82,8 @@
*/
global void UnitCacheRemove(Unit* unit)
{
- DebugLevel3Fn("%d,%d %d %s\n" _C_ unit->X _C_ unit->Y _C_ unit->Slot
_C_ unit->Type->Name);
-
Unit* prev;
+
prev = TheMap.Fields[unit->Y * TheMap.Width + unit->X].UnitCache;
if (prev == unit) {
TheMap.Fields[unit->Y * TheMap.Width + unit->X].UnitCache =
unit->Next;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Stratagus-CVS] stratagus/src/unit unitcache.c,
address@hidden <=