[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/unit unittype.c
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src/unit unittype.c |
Date: |
14 Jan 2004 16:38:28 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 04/01/14 16:38:28
Modified files:
src/unit : unittype.c
Log message:
Use VideoSaveFree to free Graphics
Patches:
Index: stratagus/src/unit/unittype.c
diff -u stratagus/src/unit/unittype.c:1.136 stratagus/src/unit/unittype.c:1.137
--- stratagus/src/unit/unittype.c:1.136 Sun Jan 11 07:54:43 2004
+++ stratagus/src/unit/unittype.c Wed Jan 14 16:38:27 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: unittype.c,v 1.136 2004/01/10 20:54:43 jsalmon3 Exp $
+// $Id: unittype.c,v 1.137 2004/01/14 05:38:27 jsalmon3 Exp $
//@{
@@ -1193,7 +1193,7 @@
// char** sp;
CLprintf(file, "\n--- -----------------------------------------\n");
- CLprintf(file, "--- MODULE: unittypes $Id: unittype.c,v 1.136
2004/01/10 20:54:43 jsalmon3 Exp $\n\n");
+ CLprintf(file, "--- MODULE: unittypes $Id: unittype.c,v 1.137
2004/01/14 05:38:27 jsalmon3 Exp $\n\n");
#if 0
// Original number to internal unit-type name.
@@ -1584,10 +1584,10 @@
for (res = 0; res < MaxCosts; ++res) {
if (type->ResInfo[res]) {
if (type->ResInfo[res]->SpriteWhenLoaded) {
-
free(type->ResInfo[res]->SpriteWhenLoaded);
+
VideoSaveFree(type->ResInfo[res]->SpriteWhenLoaded);
}
if (type->ResInfo[res]->SpriteWhenEmpty) {
-
free(type->ResInfo[res]->SpriteWhenEmpty);
+
VideoSaveFree(type->ResInfo[res]->SpriteWhenEmpty);
}
if (type->ResInfo[res]->FileWhenEmpty) {
free(type->ResInfo[res]->FileWhenEmpty);
- [Stratagus-CVS] stratagus/src/unit unittype.c,
address@hidden <=