Commit graph

3865 commits

Author SHA1 Message Date
Turo Lamminen
5508740367 Make M_ReadFile name parameter const 2018-03-13 12:31:51 +02:00
Turo Lamminen
deefc1dd49 Make M_WriteFile name parameter const 2018-03-13 12:31:51 +02:00
Turo Lamminen
bad8774dc9 Make DEH_AddStringReplacement parameters const 2018-03-13 12:31:51 +02:00
Turo Lamminen
7ad49f8e94 doom: Make HUlib_addMessageToSText string parameters const 2018-03-13 12:31:51 +02:00
Turo Lamminen
398412c156 dehacked: Make SubstitutionForString parameter const 2018-03-13 12:31:51 +02:00
Turo Lamminen
4f1a13f965 dehacked: Make strhash parameter const 2018-03-13 12:31:51 +02:00
Turo Lamminen
6e76f031a1 dehacked: Make NextFormatArgument and ValidFormatReplacement parameters const 2018-03-13 12:31:51 +02:00
Turo Lamminen
fc6d7daf3a Make I_PrintStartupBanner parameter const 2018-03-13 12:31:51 +02:00
Turo Lamminen
a580241955 Make I_PrintBanner parameter const 2018-03-13 12:31:51 +02:00
Turo Lamminen
93fb29c19b Make I_Error format string parameter const 2018-03-13 12:31:51 +02:00
Mike Swanson
b6b765a015 NEWS: Make note of some of the post-3.0.0 developments. 2018-03-10 12:55:06 -08:00
Mike Swanson
16a00c60bb NEWS: Minor formatting fixes for Markdown. 2018-03-10 12:36:10 -08:00
Simon Howard
674f6b1492
Merge pull request #998 from jmtd/bye-bye-msvc
Remove the unmaintained MSVC project
2018-03-10 14:31:36 -05:00
Mike Swanson
00d7eb220e pkg/win32: Remove mention of cygwin 2018-03-07 11:19:13 -08:00
Mike Swanson
685062a58f pkg/win32: Set LC_ALL=C before running ./cp-with-libs
Without doing this, objdump might output text in a non-Unicode locale
and confuse Python.  This is particularly the case when running on MS
Windows, where Unicode locales aren't default for non-English regions.
2018-03-07 11:00:37 -08:00
Jonathan Dowland
f3d2dc4908 remove MSVC_FILES def from Makefile.am 2018-03-07 16:10:57 +00:00
Jonathan Dowland
4c9c2e7fc0 Remove msvc project (unmaintained) 2018-03-05 15:36:35 +00:00
Fabian Greffrath
d50a8a60a0
Merge pull request #996 from AXDOOMER/master
Fix exception thrown by Windows when debugging with GDB
2018-03-03 08:01:38 +01:00
Alexandre-Xavier Labonté-Lamoureux
20eca789ad Fix exception thrown by Windows when debugging with GDB 2018-03-01 15:05:51 -05:00
Fabian Greffrath
ed2a787074 setup: when disabling "Always Run" reset joybspeed to its default value 2
Thank you @Zodomaniac for spotting this, fixes #995
2018-02-22 13:44:01 +01:00
Fabian Greffrath
4a5f98e801 strife: fix type mismatch of spechit[] between p_enemy.c and p_map.c
Thanks to @turol for spotting this, fixes #985
2018-02-21 20:49:54 +01:00
Fabian Greffrath
7279f688d1 video: more pixel_t type consistency 2018-02-21 19:55:01 +01:00
Mike Swanson
28b514bb0e Merge branch 'printf' of gh:turol/chocolate-doom 2018-02-20 15:10:41 -08:00
Fabian Greffrath
eef7a4e066 video: rename rgbabuffer variable to argbbuffer
This is just a cosmetic change, the variable is static in i_video.c
and its name has been chosen rather arbitrarily based on the false
assumption that ARGB is the most common pixel format nowadays (it is
the standard pixel format for the PNG image format, though).

In Chocolate Doom, we do not hard-code the pixel format anymore, but
rely on the screen's native format instead. Since nowadays all major
systems apparently use the the 8-8-8-8 ARGB format,
"ARGB is the right thing by monopoly vote."
<http://stereopsis.com/doubleblend.html>

So, if we so have to raise expectations about the pixel format by
our choice of the variable name, it should be the most common one.
2018-02-20 22:55:39 +01:00
Turo Lamminen
14e9e56571 Add format string attribute to TXT_snprintf 2018-02-17 16:15:13 +02:00
Turo Lamminen
51a73a6c5c Add format string attribute to M_snprintf 2018-02-17 16:14:12 +02:00
Turo Lamminen
8b5ee89f13 Add format string attribute to I_Error 2018-02-17 16:13:40 +02:00
Turo Lamminen
695e8b3d09 setup: Fix format string problems in level select dialog 2018-02-17 16:13:10 +02:00
Turo Lamminen
658479b48a Fix format string problem in M_StringDuplicate 2018-02-17 16:10:37 +02:00
Turo Lamminen
a94fcfe01d Fix format string problem in I_Realloc 2018-02-17 16:04:18 +02:00
Turo Lamminen
30b05089f5 Fix format string problems in R_DrawPlanes 2018-02-17 16:04:14 +02:00
Turo Lamminen
38d9e11a7e setup: Fix format string problem 2018-02-17 16:03:38 +02:00
Turo Lamminen
83c9d05167 Add format string attribute to DEH_String 2018-02-17 16:03:38 +02:00
Turo Lamminen
58e56f14a0 Add GCC printf format string attribute 2018-02-17 16:03:38 +02:00
Turo Lamminen
f8235983b8 Add format attribute to ST_RealMessage 2018-02-17 16:03:38 +02:00
Turo Lamminen
5c87d6b905 Add format attribute to ST_Message 2018-02-17 16:03:38 +02:00
Turo Lamminen
e045c7670f Add format attribute to formatted_printf 2018-02-17 16:03:38 +02:00
Turo Lamminen
5738407665 Add format attribute to AddCmdLineParameter 2018-02-17 16:03:38 +02:00
Turo Lamminen
2347699033 Add format attribute to DEH_snprintf 2018-02-17 16:03:38 +02:00
Turo Lamminen
39bfee97bd Add format attribute to DEH_fprintf 2018-02-17 16:03:38 +02:00
Turo Lamminen
67712c6a65 Add format attribute to DEH_printf 2018-02-17 16:03:38 +02:00
Turo Lamminen
e064e07828 Add format attribute to DEH_Warning 2018-02-17 16:03:38 +02:00
Turo Lamminen
8ddcaf2259 Add format attribute to DEH_Error 2018-02-17 16:03:38 +02:00
Turo Lamminen
ce935d5ac0 Add GCC printf format attribute 2018-02-17 16:03:38 +02:00
Mike Swanson
0b50fbde6a Print a more useful error about which savegame failed to load
Amends the prior commit, also fixes the formatting for the I_Error()
function call to represent the preferred format outlined in HACKING.

Hexen now has two locations that can fail out with an error.  One in
CopySaveSlot that should fail when a hex?.hxs file does not exist, as
specified via the -loadgame parameter.  A second in the SV_OpenRead
function that should probably never get triggered after the first; it
would mean the hex6.hxs file wasn't created or somehow deleted in the
middle of the function.  (Chocolate Hexen race condition exploits,
anyone?)
2018-02-14 20:58:27 -08:00
Mike Swanson
0fe9bbcffe When a savegame can't be loaded, exit with an error.
Closes #990, affects Doom, Heretic, Hexen, not Strife.
2018-02-14 01:43:36 -08:00
Simon Howard
a898591611 ISSUE_TEMPLATE: Add intro comment with useful links. 2018-01-28 02:00:46 -05:00
Simon Howard
f779332e4d Add issue template.
Providing a more structured format for reporting bugs should encourage
bug reporters to give more useful details and save time diagnosing
problems.
2018-01-28 01:43:44 -05:00
Simon Howard
dd77fbd2ed
CONTRIBUTING: Add more details for bug reports
A common request to bug reporters is to know what command line
they're using to start the game, so changing the wording here may
save some time.
2018-01-28 01:00:57 -05:00
Mike Swanson
9b92453235
Merge pull request #974 from turol/warnings
Treat warnings as errors in travis build
2018-01-27 15:26:25 -08:00