Bug#534773: stormbaancoureur: New upstream version (2.1.6) with fixes for leaderboard issues

Michael Dorrington michael.dorrington at gmail.com
Thu Dec 3 23:29:19 UTC 2009


Package: stormbaancoureur
Version: 2.1.5-2.1

A new upstream version is available at
http://www.stolk.org/stormbaancoureur/download/stormbaancoureur-2.1.6.tar.gz

In http://www.stolk.org/stormbaancoureur/changelog:
stormbaancoureur (2.1.6-1) unstable; urgency=low

  * Point to new leaderboard server
  * Make name resolve non-fatal
  * Debian patch for gcc-4.4 integrated

 -- Bram Stolk <b.stolk at gmail.com>  Mon, 30 Nov 2009 19:26:00 +0200

The game now uses "www.stolk.org" for the leaderboard server. This
leaderboard server isn't running yet. But the DNS entry exists AND the
game doesn't abort even if DNS entry can't be resolved. I've done some
testing to confirm this.

--- stormbaancoureur-2.1.5/src-stormbaancoureur/postscore.cxx	2008-04-20
15:56:48.000000000 +0000
+++ stormbaancoureur-2.1.6/src-stormbaancoureur/postscore.cxx	2009-12-01
03:31:35.000000000 +0000
@@ -21,7 +21,7 @@

 #include "postscore.h"

-static const char *hostname = "leaderboard.stolk.org";
+static const char *hostname = "www.stolk.org";
 static const int portnr=7460;

 static char msg[1472];
@@ -38,8 +38,10 @@

   struct hostent *he = gethostbyname(hostname);
   if (!he)
+  {
     perror("gethostbyname");
-  assert(he);
+    return;
+  }
   struct in_addr ip_addr = *(struct in_addr *)(he->h_addr);
   char *ipnr = inet_ntoa(ip_addr);






More information about the Pkg-games-devel mailing list