diff options
author | jbeich <jbeich@FreeBSD.org> | 2016-12-23 12:42:12 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2016-12-23 12:42:12 +0800 |
commit | ed398d56c59be453abb13aaa8488735597bac60e (patch) | |
tree | 6610911d409c893f2a901a4e6f72b146d35f3640 /games | |
parent | 2bf7386e89088915d5373878c28d0af525d08838 (diff) | |
download | freebsd-ports-gnome-ed398d56c59be453abb13aaa8488735597bac60e.tar.gz freebsd-ports-gnome-ed398d56c59be453abb13aaa8488735597bac60e.tar.zst freebsd-ports-gnome-ed398d56c59be453abb13aaa8488735597bac60e.zip |
games/openbor: update to 3.0.r4420
Changes: http://www.chronocrash.com/forum/index.php?topic=3178.0
Changes: svn log -r4420:4419 https://svn.code.sf.net/p/openbor/engine/engine/
Diffstat (limited to 'games')
-rw-r--r-- | games/openbor/Makefile | 2 | ||||
-rw-r--r-- | games/openbor/distinfo | 6 | ||||
-rw-r--r-- | games/openbor/files/patch-openbor.c | 33 | ||||
-rw-r--r-- | games/openbor/files/patch-sdl_sdlport.c | 2 | ||||
-rw-r--r-- | games/openbor/files/patch-source_ramlib_ram.c | 2 |
5 files changed, 36 insertions, 9 deletions
diff --git a/games/openbor/Makefile b/games/openbor/Makefile index 91d0921a9fb6..20d0446a76c3 100644 --- a/games/openbor/Makefile +++ b/games/openbor/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= openbor -PORTVERSION= 3.0.r4419 +PORTVERSION= 3.0.r4420 CATEGORIES= games MASTER_SITES= LOCAL/jbeich \ https://svn.code.sf.net/p/${PORTNAME}/engine/engine/:svn diff --git a/games/openbor/distinfo b/games/openbor/distinfo index f71171aa2248..ef9e1ca5d7f4 100644 --- a/games/openbor/distinfo +++ b/games/openbor/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1482411722 -SHA256 (openbor-3.0.r4419.tar.xz) = 275c6b269eaaec1817b195287742441c434dbcc3fe4a05443490a6d4be52f611 -SIZE (openbor-3.0.r4419.tar.xz) = 3941412 +TIMESTAMP = 1482422861 +SHA256 (openbor-3.0.r4420.tar.xz) = 3497b60d2ac4eb7300ba74154b4057e216f289fe202660c9e49ba4d6bdec0985 +SIZE (openbor-3.0.r4420.tar.xz) = 3944364 diff --git a/games/openbor/files/patch-openbor.c b/games/openbor/files/patch-openbor.c index 4f1f134acf0b..2b9ebf433157 100644 --- a/games/openbor/files/patch-openbor.c +++ b/games/openbor/files/patch-openbor.c @@ -1,4 +1,6 @@ ---- openbor.c.orig 2016-12-19 15:29:57 UTC +Fix potential crashes found by ASan/Clang/GCC + +--- openbor.c.orig 2016-12-22 13:02:02 UTC +++ openbor.c @@ -5810,7 +5810,7 @@ s_collision_attack **collision_alloc_att size_t alloc_size;
@@ -18,21 +20,42 @@ // Allocate memory and get pointer.
result = malloc(alloc_size);
-@@ -20480,7 +20480,7 @@ void common_dot() +@@ -13933,7 +13933,7 @@ void generate_basemap(int map_index, flo + + void load_level(char *filename) + { +- char *buf; ++ char *buf = NULL; + size_t size, len, sblen; + ptrdiff_t pos, oldpos; + char *command; +@@ -15210,6 +15210,11 @@ void bar(int x, int y, int value, int ma + return; + } + ++ if (value < 0) ++ { ++ value = 0; ++ } ++ + if (value > maxvalue) + { + value = maxvalue; +@@ -20471,7 +20476,7 @@ void common_dot() entity *eOpp; //Owner of dot effect. s_collision_attack attack; //Attack struct. - for(iIndex = 0; iIndex <= MAX_DOTS; iIndex++) //Loop through all DOT indexes. -+ for(iIndex = 0; iIndex < MAX_DOTS; iIndex++) //Loop through all DOT indexes. ++ for(iIndex = 0; iIndex < MAX_DOTS; iIndex++) //Loop through all DOT indexes. { iDot_time = self->dot_time[iIndex]; //Get expire time. iDot_cnt = self->dot_cnt[iIndex]; //Get next tick time. -@@ -34617,7 +34617,7 @@ void keyboard_setup(int player) +@@ -34607,7 +34612,7 @@ void keyboard_setup(int player) strncpy(buttonnames[SDID_SPECIAL], "Special", 16); strncpy(buttonnames[SDID_START], "Start", 16); strncpy(buttonnames[SDID_SCREENSHOT], "Screenshot", 16);
- strncpy(buttonnames[SDID_ESC], "Exit", 16); -+// strncpy(buttonnames[SDID_ESC], "Exit", 16); ++ //strncpy(buttonnames[SDID_ESC], "Exit", 16); savesettings(); bothnewkeys = 0; diff --git a/games/openbor/files/patch-sdl_sdlport.c b/games/openbor/files/patch-sdl_sdlport.c index b092c843e344..4e02426b2ffa 100644 --- a/games/openbor/files/patch-sdl_sdlport.c +++ b/games/openbor/files/patch-sdl_sdlport.c @@ -1,3 +1,5 @@ +Store settings under ~/.openbor instead of current directory + --- sdl/sdlport.c.orig 2013-12-29 14:05:10 UTC +++ sdl/sdlport.c @@ -6,6 +6,11 @@ diff --git a/games/openbor/files/patch-source_ramlib_ram.c b/games/openbor/files/patch-source_ramlib_ram.c index cf80e06758e7..5a32a492ed5c 100644 --- a/games/openbor/files/patch-source_ramlib_ram.c +++ b/games/openbor/files/patch-source_ramlib_ram.c @@ -1,3 +1,5 @@ +Implement Linux-like memory stats for BSDs + --- source/ramlib/ram.c.orig 2015-04-18 21:21:56 UTC +++ source/ramlib/ram.c @@ -25,6 +25,21 @@ |