From c1e724483a99f3bf014dc795a9b7f8977bf99661 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Thu, 21 Dec 2000 19:16:19 +0000 Subject: Update to 001115. --- games/ltris/Makefile | 2 +- games/ltris/distinfo | 2 +- games/ltris/files/patch-ae | 22 ++++++++++++++++++++-- games/ltris/files/patch-af | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 69 insertions(+), 4 deletions(-) create mode 100644 games/ltris/files/patch-af (limited to 'games/ltris') diff --git a/games/ltris/Makefile b/games/ltris/Makefile index c29cc9cb8042..ab8501bc57df 100644 --- a/games/ltris/Makefile +++ b/games/ltris/Makefile @@ -6,7 +6,7 @@ # PORTNAME= ltris -PORTVERSION= 001017 +PORTVERSION= 001115 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= lgames diff --git a/games/ltris/distinfo b/games/ltris/distinfo index 9813a55432e2..bbb645a7885a 100644 --- a/games/ltris/distinfo +++ b/games/ltris/distinfo @@ -1 +1 @@ -MD5 (ltris-001017.tar.gz) = 2576350d43dd41fffcddcb897c589d03 +MD5 (ltris-001115.tar.gz) = a1297d14fa6fce274056ec7d1052e14a diff --git a/games/ltris/files/patch-ae b/games/ltris/files/patch-ae index 7b1915eea2d5..966acad18dcb 100644 --- a/games/ltris/files/patch-ae +++ b/games/ltris/files/patch-ae @@ -1,5 +1,23 @@ ---- configure.orig Thu Oct 19 17:58:15 2000 -+++ configure Thu Oct 19 17:59:38 2000 +--- configure.orig Thu Dec 21 19:28:40 2000 ++++ configure Thu Dec 21 19:30:24 2000 +@@ -1272,7 +1272,7 @@ + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lSDL $LIBS" ++LIBS="$LIBS" + cat > conftest.$ac_ext <&6 @@ -1322,8 +1322,8 @@ diff --git a/games/ltris/files/patch-af b/games/ltris/files/patch-af new file mode 100644 index 000000000000..7217f9582fd2 --- /dev/null +++ b/games/ltris/files/patch-af @@ -0,0 +1,47 @@ +--- ltris/tetris.cpp.orig Thu Dec 21 20:53:27 2000 ++++ ltris/tetris.cpp Thu Dec 21 21:03:51 2000 +@@ -19,6 +19,8 @@ + #include + #include + #include ++#include ++#include + #include "tetris.h" + #include "preview.h" + +@@ -35,14 +37,18 @@ + snapshot = 0; + q_pct = 90; + q_pms = -0.05; ++ struct stat sb; + + //setup init data + /*config path*/ + cfg_path = new char[strlen(home_dir) + strlen(".ltris.cfg") + 2]; + sprintf(cfg_path, "%s/.ltris.cfg", home_dir); + /*load init*/ +- FILE *f; +- if ((f = fopen(cfg_path, "r")) == 0) { ++ FILE *f = NULL; ++ if (stat(cfg_path, &sb) == 0) { ++ f = fopen(cfg_path, "r"); ++ } ++ if ((f == NULL) || (sb.st_size != sizeof(InitData))) { + init_data.level = 0; + init_data.gametype = 0; + init_data.next = 1; +@@ -73,11 +79,13 @@ + init_data.smooth_hori = 0; + init_data.help = 0; + init_data.bl_by_bl = 0; ++ init_data.slow = 0; + } + else { + fread(&init_data, sizeof(InitData), 1, f); +- fclose(f); + } ++ if (f != NULL) ++ fclose(f); + + //load hiscores + hiscore[0] = new HiScore("highscore.0"); -- cgit v1.2.3