Patric Stout
45fbaa64c2
Codechange: check if a define is set directly, instead of indirectly
...
config.lib happens to set GLOBAL_DATA_DIR in case it is not DOS
and not OS2, but this kind of deduction is annoying to maintain.
It is better to just check if the define you want to use is set,
and leave it to config.lib to set it or not depending on the OS.
2019-03-11 10:16:00 +01:00
Patric Stout
1f57150d80
Codechange: "basedir.h" is a system include, not a local
2019-03-11 10:16:00 +01:00
Patric Stout
7784d77713
Remove: MorphOS / AmigaOS support
...
In 10 years there is no commit to change how MorphOS works, and we
have no active maintainer for it. It is unlikely it works in its
current state (but not impossible).
With the arrival of SDL2 (and removal of SDL), MorphOS is no longer
support. There is an SDL2 port for MorphOS, but it is not maintained
by upstream SDL2, and nobody can currently test it out.
If anyone wants to re-add MorphOS, please do (revert this patch,
fix the problems, and create a Pull Request). If you need any help
doing so, let us know! It is not that we don't like MorphOS, it is
that we don't have anyone fixing the problems :(
2019-03-05 22:03:00 +01:00
Jonathan G Rennison
4f1d54564e
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/debug.cpp
2019-01-02 16:09:44 +00:00
glx
c540d72445
Fix: [Win32] WIN32 may not be defined, always prefer the compiler predefined macro _WIN32
2018-12-27 18:09:16 +01:00
Jonathan G Rennison
e735c1a51a
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/aircraft_cmd.cpp
# src/autoreplace_cmd.cpp
# src/pathfinder/follow_track.hpp
# src/pathfinder/yapf/yapf_rail.cpp
# src/saveload/afterload.cpp
# src/saveload/saveload.cpp
# src/script/api/ai/ai_station.hpp.sq
# src/script/api/game/game_station.hpp.sq
# src/script/api/script_station.hpp
# src/track_func.h
# src/vehicle_base.h
2018-11-05 12:53:36 +00:00
Charles Pigott
f5b1115039
Doc: Lots and lots of doxymentation fixes
2018-10-31 12:35:54 +01:00
Jonathan G Rennison
8e9d68048a
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/string.cpp
2018-06-07 06:49:18 +01:00
Niels Martin Hansen
458e441a4c
Codechange: Make FioCreateDirectory public
2018-06-05 22:58:35 +02:00
Jonathan G Rennison
ad1c402ad8
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/debug.cpp
# src/saveload/afterload.cpp
# src/saveload/saveload.cpp
# src/settings_type.h
# src/town_cmd.cpp
# src/window.cpp
2018-05-03 23:54:51 +01:00
Patric Stout
aef69443e7
Remove: WinCE support
2018-04-29 15:32:16 +02:00
Jonathan G Rennison
4a0d949d83
Merge branch 'master' into jgrpp
2018-01-14 23:22:47 +00:00
frosch
2e20751c5f
(svn r27954) -Cleanup [FS#6644]: Remove unused function (M3Henry)
2017-12-27 22:07:59 +00:00
frosch
6b11ab49d2
(svn r27954) -Cleanup [FS#6644]: Remove unused function (M3Henry)
2017-12-27 22:07:59 +00:00
Jonathan G Rennison
f34833f111
Merge branch 'improved_breakdowns' into jgrpp
...
# Conflicts:
# src/vehiclelist.cpp
2017-08-15 19:26:26 +01:00
frosch
b4b98e5165
(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)
2017-08-13 18:38:42 +00:00
frosch
a47fb85cd8
(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)
2017-08-13 18:38:42 +00:00
Jonathan G Rennison
82ec6d93dc
Merge branch 'master' into jgrpp
2017-06-25 11:55:27 +01:00
frosch
4c50ecd958
(svn r27886) -Fix [FS#6575-ish]: Do not modify argv[0].
2017-06-22 17:29:53 +00:00
frosch
2f7ac7c41f
(svn r27886) -Fix [FS#6575-ish]: Do not modify argv[0].
2017-06-22 17:29:53 +00:00
Jonathan G Rennison
f89e8b76d6
Fix increased number of NewGRFs support.
...
Improve error handling if multiplayer limit is exceeded.
2017-02-14 00:35:15 +00:00
rubidium
9edf5eba4e
(svn r26514) -Fix: rewrite link-in-tar handling so it doesn't use strncpy and it doesn't overrun its buffers anymore
2014-04-25 21:29:54 +00:00
rubidium
5ef2042819
(svn r26514) -Fix: rewrite link-in-tar handling so it doesn't use strncpy and it doesn't overrun its buffers anymore
2014-04-25 21:29:54 +00:00
rubidium
034735a54c
(svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL)
2014-04-25 15:40:32 +00:00
rubidium
9ed12b0f07
(svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL)
2014-04-25 15:40:32 +00:00
rubidium
699779324e
(svn r26499) -Codechange: replace strndup with stredup
2014-04-24 18:37:39 +00:00
rubidium
8960939b22
(svn r26499) -Codechange: replace strndup with stredup
2014-04-24 18:37:39 +00:00
rubidium
5c7c2445d8
(svn r26489) -Codechange: properly account for the end of buffers in the file io code instead of assuming MAX_PATH is okay
2014-04-23 21:23:21 +00:00
rubidium
21f991e235
(svn r26489) -Codechange: properly account for the end of buffers in the file io code instead of assuming MAX_PATH is okay
2014-04-23 21:23:21 +00:00
frosch
24c7134bff
(svn r26485) -Codechange: Replace ttd_strlcpy and ttd_strlcat with strecpy and strecat.
2014-04-23 20:44:42 +00:00
frosch
ef4c2ce031
(svn r26485) -Codechange: Replace ttd_strlcpy and ttd_strlcat with strecpy and strecat.
2014-04-23 20:44:42 +00:00
rubidium
2be4215f43
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-23 20:13:33 +00:00
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-23 20:13:33 +00:00
rubidium
bb5984a02b
(svn r26114) -Fix-ish: do our best to not get bit by getenv being unsafe as hell
2013-11-25 21:50:54 +00:00
rubidium
d2ffba07bb
(svn r26114) -Fix-ish: do our best to not get bit by getenv being unsafe as hell
2013-11-25 21:50:54 +00:00
rubidium
d9a3177862
(svn r26089) -Fix: a number of minor memory leaks
2013-11-24 15:21:38 +00:00
rubidium
0ac9ed0b6b
(svn r26089) -Fix: a number of minor memory leaks
2013-11-24 15:21:38 +00:00
rubidium
86621f0ff4
(svn r26087) -Fix: file descriptor leak when finding a corrupt tar
2013-11-24 15:02:05 +00:00
rubidium
3eecd246eb
(svn r26087) -Fix: file descriptor leak when finding a corrupt tar
2013-11-24 15:02:05 +00:00
rubidium
e591a65ade
(svn r26082) -Fix [FS#5816] (r26077): tar files with more than one file in the root directory would not be read properly (zydeco)
2013-11-24 13:00:06 +00:00
rubidium
b75e60124d
(svn r26082) -Fix [FS#5816] (r26077): tar files with more than one file in the root directory would not be read properly (zydeco)
2013-11-24 13:00:06 +00:00
rubidium
954a141ca8
(svn r26077) -Codechange: handle strings like strings when scanning a tar instead of merely blobs of memory
2013-11-23 21:42:45 +00:00
rubidium
5e2d22da79
(svn r26077) -Codechange: handle strings like strings when scanning a tar instead of merely blobs of memory
2013-11-23 21:42:45 +00:00
rubidium
428faaf4ad
(svn r26076) -Codechange: upgrade some C-style named structs to C++-style named structs
2013-11-23 21:31:00 +00:00
rubidium
5049e938f5
(svn r26076) -Codechange: upgrade some C-style named structs to C++-style named structs
2013-11-23 21:31:00 +00:00
rubidium
e4b208c069
(svn r26061) -Fix: negative result of ftell wasn't handled correctly in some cases
2013-11-23 13:17:45 +00:00
rubidium
78a316d349
(svn r26061) -Fix: negative result of ftell wasn't handled correctly in some cases
2013-11-23 13:17:45 +00:00
rubidium
a6fae2c608
(svn r26058) -Fix: handle the return value of a number of functions better
2013-11-23 13:15:07 +00:00
rubidium
0e9c992104
(svn r26058) -Fix: handle the return value of a number of functions better
2013-11-23 13:15:07 +00:00
rubidium
446613e868
(svn r26008) -Fix (r25975): uninitialised warning
2013-11-16 10:04:10 +00:00