[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/game intro.c
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src/game intro.c |
Date: |
26 Jan 2004 08:18:08 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 04/01/26 08:18:08
Modified files:
src/game : intro.c
Log message:
Fix divide by 0
Patches:
Index: stratagus/src/game/intro.c
diff -u stratagus/src/game/intro.c:1.122 stratagus/src/game/intro.c:1.123
--- stratagus/src/game/intro.c:1.122 Sat Jan 17 02:17:23 2004
+++ stratagus/src/game/intro.c Mon Jan 26 08:18:07 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: intro.c,v 1.122 2004/01/16 15:17:23 wizzard Exp $
+// $Id: intro.c,v 1.123 2004/01/25 21:18:07 jsalmon3 Exp $
//@{
@@ -797,7 +797,7 @@
WaitEventsOneFrame(&callbacks);
++i;
}
- i = chapter->Data.Picture.FadeOut * i / max;
+ i = chapter->Data.Picture.FadeOut * i / (max ? max : 1);
//
// Draw background and title