Attached I have a patch that fixes the triple displayed power bar, bug
#7980 (https://gna.org/bugs/?7980).

The second attached patch increases the time that console messages
(multi-player chat text among them) is displayed for a long time. This
because the current time (3 seconds) really is too short for multi-play
chat text (3 seconds atm). Therefore I have increased this time to eight
seconds. Although it maybe should be turned into a runtime setting
instead (rather than compile-time definition).


--
Giel
Index: src/intdisplay.c
===================================================================
--- src/intdisplay.c    (revision 566)
+++ src/intdisplay.c    (working copy)
@@ -805,7 +805,7 @@
                iV_DrawImageRect(IntImages,IMAGE_PBAR_EMPTY,
                                                        x0,y0,
                                                        0,0,
-                                                       textWidth, 
iV_GetImageWidth(IntImages,IMAGE_PBAR_EMPTY));
+                                                       textWidth, 
iV_GetImageHeight(IntImages,IMAGE_PBAR_EMPTY));
                x0 += textWidth;
        }
 
@@ -819,14 +819,14 @@
                iV_DrawImageRect(IntImages,IMAGE_PBAR_USED,
                                                        x0,y0,
                                                        0,0,
-                                                       ManPow, 
iV_GetImageWidth(IntImages,IMAGE_PBAR_USED));
+                                                       ManPow, 
iV_GetImageHeight(IntImages,IMAGE_PBAR_USED));
        }
        else
        {
                iV_DrawImageRect(IntImages,IMAGE_PBAR_REQUIRED,
                                                        x0,y0,
                                                        0,0,
-                                                       ManPow, 
iV_GetImageWidth(IntImages,IMAGE_PBAR_REQUIRED));
+                                                       ManPow, 
iV_GetImageHeight(IntImages,IMAGE_PBAR_REQUIRED));
        }
 
        x0 += ManPow;
@@ -837,7 +837,7 @@
                iV_DrawImageRect(IntImages,IMAGE_PBAR_AVAIL,
                                                        x0,y0,
                                                        0,0,
-                                                       Avail-ManPow, 
iV_GetImageWidth(IntImages,IMAGE_PBAR_AVAIL));
+                                                       Avail-ManPow, 
iV_GetImageHeight(IntImages,IMAGE_PBAR_AVAIL));
 
                x0 += Avail-ManPow;
        }
@@ -848,7 +848,7 @@
                iV_DrawImageRect(IntImages,IMAGE_PBAR_EMPTY,
                                                        x0,y0,
                                                        0,0,
-                                                       Empty, 
iV_GetImageWidth(IntImages,IMAGE_PBAR_EMPTY));
+                                                       Empty, 
iV_GetImageHeight(IntImages,IMAGE_PBAR_EMPTY));
                x0 += Empty;
        }
 
Index: src/console.h
===================================================================
--- src/console.h       (revision 566)
+++ src/console.h       (working copy)
@@ -5,7 +5,7 @@
 #define MAX_CONSOLE_STRING_LENGTH              (255)
 #define MAX_CONSOLE_TMP_STRING_LENGTH  (255)
 
-#define        DEFAULT_MESSAGE_DURATION                GAME_TICKS_PER_SEC * 3
+#define        DEFAULT_MESSAGE_DURATION                GAME_TICKS_PER_SEC * 8
 
 #define CON_BORDER_WIDTH                               4
 #define CON_BORDER_HEIGHT                              4

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to