[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/missile ccl_missile.c
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src/missile ccl_missile.c |
Date: |
11 Jan 2004 07:57:15 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 04/01/11 07:57:15
Modified files:
src/missile : ccl_missile.c
Log message:
Added Flip
Patches:
Index: stratagus/src/missile/ccl_missile.c
diff -u stratagus/src/missile/ccl_missile.c:1.54
stratagus/src/missile/ccl_missile.c:1.55
--- stratagus/src/missile/ccl_missile.c:1.54 Fri Jan 9 09:26:29 2004
+++ stratagus/src/missile/ccl_missile.c Sun Jan 11 07:57:14 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: ccl_missile.c,v 1.54 2004/01/08 22:26:29 mohydine Exp $
+// $Id: ccl_missile.c,v 1.55 2004/01/10 20:57:14 jsalmon3 Exp $
//@{
@@ -94,6 +94,7 @@
}
mtype->NumDirections = 1;
+ mtype->Flip = 1;
// Ensure we don't divide by zero.
mtype->SplashFactor = 100;
@@ -119,6 +120,8 @@
lua_pop(l, 1);
} else if (!strcmp(value, "Frames")) {
mtype->SpriteFrames = LuaToNumber(l, -1);
+ } else if (!strcmp(value, "Flip")) {
+ mtype->SpriteFrames = LuaToBoolean(l, -1);
} else if (!strcmp(value, "NumDirections")) {
mtype->NumDirections = LuaToNumber(l, -1);
} else if (!strcmp(value, "transparency")) {