heroes-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Heroes] heroes ./ChangeLog src/people.def src/render.c ...


From: Alexandre Duret-Lutz
Subject: [Heroes] heroes ./ChangeLog src/people.def src/render.c ...
Date: Wed, 20 Nov 2002 07:32:00 -0500

CVSROOT:        /cvsroot/heroes
Module name:    heroes
Changes by:     Alexandre Duret-Lutz <address@hidden>   02/11/20 07:32:00

Modified files:
        .              : ChangeLog 
        src            : people.def render.c 
        src/media      : video.h 

Log message:
        * src/media.video.h (ybuf, sbuf): Enlarge the height of the rendering
        buffer, otherwise rendering tutorial arrows can overflow and
        cause segfaults.
        Reported by Christoph Claus and Jean Delvare.

Patches:
Index: heroes/ChangeLog
diff -u heroes/ChangeLog:1.799 heroes/ChangeLog:1.800
--- heroes/ChangeLog:1.799      Sun Nov 17 12:35:26 2002
+++ heroes/ChangeLog    Wed Nov 20 07:31:59 2002
@@ -1,3 +1,10 @@
+2002-11-20  Alexandre Duret-Lutz  <address@hidden>
+
+       * src/media.video.h (ybuf, sbuf): Enlarge the height of the rendering
+       buffer, otherwise rendering tutorial arrows can overflow and
+       cause segfaults.
+       Reported by Christoph Claus and Jean Delvare.
+
 2002-11-17  Alexandre Duret-Lutz  <address@hidden>
 
        * doc/heroes.texi (Mailing lists): Update mailing list addresses.
Index: heroes/src/media/video.h
diff -u heroes/src/media/video.h:1.4 heroes/src/media/video.h:1.5
--- heroes/src/media/video.h:1.4        Fri Sep 21 06:43:57 2001
+++ heroes/src/media/video.h    Wed Nov 20 07:32:00 2002
@@ -25,8 +25,8 @@
 /* the three macro below configure the rendering buffers used in the game */
 #define xbuf 512               /* large width to suppress any clipping need,
                                   power of two of easier multiplications */
-#define ybuf 300               /* height */
-#define sbuf (50*xbuf)         /* keep sbuf empty line on top of the buffers
+#define ybuf 320               /* height */
+#define sbuf (60*xbuf)         /* keep sbuf empty line on top of the buffers
                                   (to avoid clipping) */
 
 
Index: heroes/src/people.def
diff -u heroes/src/people.def:1.14 heroes/src/people.def:1.15
--- heroes/src/people.def:1.14  Thu Aug 22 07:43:09 2002
+++ heroes/src/people.def       Wed Nov 20 07:32:00 2002
@@ -58,6 +58,12 @@
 };
 
 person = {
+  name    = "Christoph Claus";
+  email   = address@hidden;
+  bugs;
+};
+
+person = {
   name    = "Beiad Ian Q. Dalton";
   email   = address@hidden;
   bugs;
Index: heroes/src/render.c
diff -u heroes/src/render.c:1.63 heroes/src/render.c:1.64
--- heroes/src/render.c:1.63    Mon Apr  1 09:34:47 2002
+++ heroes/src/render.c Wed Nov 20 07:32:00 2002
@@ -587,7 +587,7 @@
     int arrow_index = (wavepos * NBR_ARROW_FRAMES / 70) % NBR_ARROW_FRAMES;
     a_sprite *s = tutorial_arrow[arrow_index];
     double d  = 10.0 + 4.0 * sin (wavepos / 40.0); /* arbitrary */
-    /* Substract M_PI_4 so the arrow looks a bit inclinded.  */
+    /* Substract M_PI_4 so the arrow looks a bit inclined.  */
     int dx =   d * cos (angle - M_PI_4);
     int dy = - d * sin (angle - M_PI_4);
     int color = minisinus[wavepos & 31] + 10;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]