aboutsummaryrefslogtreecommitdiff
path: root/games/el
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2016-04-29 21:55:10 +0000
committerKurt Jaeger <pi@FreeBSD.org>2016-04-29 21:55:10 +0000
commit227bef6c0d42c9a694e13bb3bd67823d189f8d8e (patch)
tree3c2cb7385cfd9e765b5803717fdabfce0dad9607 /games/el
parent1378a5e5d79e7a79492646fe237bc7053720e08c (diff)
downloadports-227bef6c0d42c9a694e13bb3bd67823d189f8d8e.tar.gz
ports-227bef6c0d42c9a694e13bb3bd67823d189f8d8e.zip
Notes
Diffstat (limited to 'games/el')
-rw-r--r--games/el/files/patch-icon__window.cpp11
-rw-r--r--games/el/files/patch-item__lists.cpp11
-rw-r--r--games/el/files/patch-quest__log.cpp11
3 files changed, 33 insertions, 0 deletions
diff --git a/games/el/files/patch-icon__window.cpp b/games/el/files/patch-icon__window.cpp
new file mode 100644
index 000000000000..2908fc5b94ba
--- /dev/null
+++ b/games/el/files/patch-icon__window.cpp
@@ -0,0 +1,11 @@
+--- icon_window.cpp.orig 2014-01-06 13:53:40 UTC
++++ icon_window.cpp
+@@ -358,7 +358,7 @@ namespace IconWindow
+ size_t index = (has_highlight)? 1: 0;
+ if (flashing)
+ {
+- if (abs(SDL_GetTicks() - last_flash_change) > 250)
++ if (abs((Sint32)(SDL_GetTicks() - last_flash_change)) > 250)
+ {
+ last_flash_change = SDL_GetTicks();
+ flashing--;
diff --git a/games/el/files/patch-item__lists.cpp b/games/el/files/patch-item__lists.cpp
new file mode 100644
index 000000000000..c03cc5358973
--- /dev/null
+++ b/games/el/files/patch-item__lists.cpp
@@ -0,0 +1,11 @@
+--- item_lists.cpp.orig 2014-01-06 13:53:40 UTC
++++ item_lists.cpp
+@@ -796,7 +796,7 @@ namespace ItemLists
+ {
+ if (!last_mod_time)
+ return;
+- if (force || (last_mod_time && abs(last_mod_time - SDL_GetTicks()) > 5000))
++ if (force || (last_mod_time && abs((Sint32)(last_mod_time - SDL_GetTicks())) > 5000))
+ save();
+ }
+
diff --git a/games/el/files/patch-quest__log.cpp b/games/el/files/patch-quest__log.cpp
new file mode 100644
index 000000000000..5cc35cb57d27
--- /dev/null
+++ b/games/el/files/patch-quest__log.cpp
@@ -0,0 +1,11 @@
+--- quest_log.cpp.orig 2014-01-06 13:53:40 UTC
++++ quest_log.cpp
+@@ -85,7 +85,7 @@ class Quest_Title_Request
+ Uint16 get_id(void) const { return id; }
+ void request(void);
+ bool been_requested(void) const { return requested; }
+- bool is_too_old(void) const { return (abs(SDL_GetTicks() - request_time) > 5000); }
++ bool is_too_old(void) const { return (abs((Sint32)(SDL_GetTicks() - request_time)) > 5000); }
+ private:
+ Uint16 id;
+ Uint32 request_time;