[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/clone unit.c unit_draw.c
From: |
Crestez Leonard |
Subject: |
[Stratagus-CVS] stratagus/src/clone unit.c unit_draw.c |
Date: |
Sat, 22 Nov 2003 14:11:34 -0500 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Crestez Leonard <address@hidden> 03/11/22 14:11:33
Modified files:
src/clone : unit.c unit_draw.c
Log message:
Fixed editor bug
Patches:
Index: stratagus/src/clone/unit.c
diff -u stratagus/src/clone/unit.c:1.343 stratagus/src/clone/unit.c:1.344
--- stratagus/src/clone/unit.c:1.343 Fri Nov 21 22:13:40 2003
+++ stratagus/src/clone/unit.c Sat Nov 22 14:11:33 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: unit.c,v 1.343 2003/11/22 03:13:40 jsalmon3 Exp $
+// $Id: unit.c,v 1.344 2003/11/22 19:11:33 n0body Exp $
//@{
@@ -959,6 +959,11 @@
{
DebugCheck(!unit->Type); // FIXME: Can this happen, if yes it is a bug
+ // All units are always visible in the editor.
+ if (EditorRunning) {
+ return 1;
+ }
+
// If it's your own unit, of course you can see it, right?
// WRONG, it can have a vision range of 0.
// Invisible by spell
@@ -966,6 +971,7 @@
return 0;
}
// If units are watching it... what do you think?
+ // Units are always visible if the editor is running.
if (unit->VisCount[ThisPlayer->Player]) {
return 1;
} else { // Not watched by any units.
@@ -3725,7 +3731,7 @@
int RunStart;
CLprintf(file, "\n;;; -----------------------------------------\n");
- CLprintf(file, ";;; MODULE: units $Id: unit.c,v 1.343 2003/11/22 03:13:40
jsalmon3 Exp $\n\n");
+ CLprintf(file, ";;; MODULE: units $Id: unit.c,v 1.344 2003/11/22 19:11:33
n0body Exp $\n\n");
//
// Local variables
Index: stratagus/src/clone/unit_draw.c
diff -u stratagus/src/clone/unit_draw.c:1.188
stratagus/src/clone/unit_draw.c:1.189
--- stratagus/src/clone/unit_draw.c:1.188 Thu Nov 20 15:35:45 2003
+++ stratagus/src/clone/unit_draw.c Sat Nov 22 14:11:33 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: unit_draw.c,v 1.188 2003/11/20 20:35:45 n0body Exp $
+// $Id: unit_draw.c,v 1.189 2003/11/22 19:11:33 n0body Exp $
//@{
@@ -943,7 +943,7 @@
global void SaveDecorations(CLFile* file)
{
CLprintf(file, "\n;;; -----------------------------------------\n");
- CLprintf(file, ";;; MODULE: decorations $Id: unit_draw.c,v 1.188
2003/11/20 20:35:45 n0body Exp $\n\n");
+ CLprintf(file, ";;; MODULE: decorations $Id: unit_draw.c,v 1.189
2003/11/22 19:11:33 n0body Exp $\n\n");
CLprintf(file, "(mana-sprite \"%s\" %d %d %d %d)\n",
ManaSprite.File, ManaSprite.HotX, ManaSprite.HotY,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Stratagus-CVS] stratagus/src/clone unit.c unit_draw.c,
Crestez Leonard <=