dxx-rebirth/similar/main
Kp 674a9213f8 Add workaround for Win32 wrong type for size_t
GCC std::array uses std::size_t for its size_type.  On Linux/amd64,
`std::size_t` is `unsigned long`.  On Win32, `std::size_t` is
`unsigned int`.  This provokes format string warnings because an
unsigned int is passed where the format string declares an unsigned
long.  On Win32, `unsigned int` and `unsigned long` are the same size,
so `unsigned long` could have been used to avoid this problem by
maintaining consistency with Linux, but it was not.  This may have been
an attempt to achieve bug compatibility with Microsoft's types.

Add a workaround by defining a macro DXX_PRI_size_type in the style of
inttypes.h PRI* macros.  Use an SConf test to determine the correct
value by inspecting which compilation runs succeed.  Currently, Linux
needs "l", Win32 needs "", and Win64 needs "I64".
2016-07-15 03:43:03 +00:00
..
ai.cpp Propagate MAX_STOLEN_ITEMS 2016-07-10 04:11:34 +00:00
aipath.cpp Fold create_n_segment_path calls 2016-07-09 17:58:35 +00:00
automap.cpp Cache reference to local player object 2016-07-03 00:54:16 +00:00
bm.cpp Add workaround for Win32 wrong type for size_t 2016-07-15 03:43:03 +00:00
cntrlcen.cpp Pass object &to calc_controlcen_gun_point 2016-04-23 17:59:47 +00:00
collide.cpp Use static_cast for check_effect_blowup 2016-07-06 01:54:25 +00:00
config.cpp
console.cpp Remove unnecessary gr_setcolor calls 2016-02-12 04:02:28 +00:00
controls.cpp Cache reference to local player energy 2016-07-03 00:54:16 +00:00
credits.cpp Propagate bm_mode::linear into pcx_read_bitmap 2016-05-28 17:31:26 +00:00
digiobj.cpp Propagate digiobj MAX_Q 2016-07-15 03:43:02 +00:00
dumpmine.cpp Use constexpr for MAX_BITMAP_FILES 2016-07-14 01:59:05 +00:00
effects.cpp
endlevel.cpp Propagate bm_mode::linear into iff_read_bitmap 2016-05-28 17:31:27 +00:00
fireball.cpp Refactor to propagate MultiLevelInv_Count initial 2016-07-14 01:59:03 +00:00
fuelcen.cpp New powerup management code: Addeed functions and packet type to keep track of original and current level inventory as well as player and thief inventories. Calling maybe_drop_net_powerup() for all ammo based weapons except Concussion missiles. Limiting maybe_drop_net_powerup() to only spawn items missing from initial level inventory. Added function to let host respawn items that were lost for whatever reason. Expanded maybe_drop_net_powerup() and child functions to be able to drop item based on a random player. Changed back maybe_drop_secondary_weapon_egg() to its original behavior, dropping 3 of each type max. 2016-02-25 14:11:08 +01:00
fvi.cpp Use static_cast for check_trans_wall 2016-07-06 01:54:25 +00:00
game.cpp Move Next_laser_fire_time to player_info 2016-07-06 01:54:26 +00:00
gamecntl.cpp Cache reference to local player energy 2016-07-03 00:54:16 +00:00
gamefont.cpp Remove useless cast in gamefont 2016-07-15 03:43:02 +00:00
gamemine.cpp Propagate MAX_TEXTURES 2016-07-10 04:11:35 +00:00
gamerend.cpp Define Robot_names only if EDITOR 2016-07-09 17:58:34 +00:00
gamesave.cpp Fix -Wshadow warnings in load_game_data 2016-05-21 17:24:51 +00:00
gameseg.cpp Rewrite simple numeric casts from C style to static_cast<> 2016-07-06 01:54:24 +00:00
gameseq.cpp Remove useless cast in gameseq.cpp 2016-07-15 03:43:03 +00:00
gauges.cpp Fold newdemo_record_primary_ammo in draw_hud 2016-07-14 01:59:04 +00:00
hostage.cpp
hud.cpp Move HUD_MESSAGE_LENGTH to hud.cpp 2016-07-09 17:58:35 +00:00
iff.cpp Rewrite declarations of ushort * to standard uint16_t * 2016-07-14 01:59:02 +00:00
inferno.cpp Move namespace dsx handling to dsx-ns.h 2016-03-19 19:08:10 +00:00
kconfig.cpp Rewrite simple integer casts from C style to static_cast<> 2016-06-05 01:04:26 +00:00
kmatrix.cpp Propagate bm_mode::linear into pcx_read_bitmap 2016-05-28 17:31:26 +00:00
laser.cpp Fold do_missile_firing calls to multi_send_fire 2016-07-14 01:59:04 +00:00
lighting.cpp Rewrite simple integer casts from C style to static_cast<> 2016-06-05 01:04:26 +00:00
menu.cpp Reworked 586ba9ff6db85b976f074589c5dd7e2d6ff40cd1: Show player ping along with player kills/scores and made it a toggle for HUD configuration so the player can enable it permanently 2016-03-30 20:09:46 +02:00
mglobal.cpp Move Next_laser_fire_time to player_info 2016-07-06 01:54:26 +00:00
mission.cpp Fix -Wshadow warnings in mission.cpp 2016-05-22 17:49:32 +00:00
morph.cpp Rewrite declarations of ushort * to standard uint16_t * 2016-07-14 01:59:02 +00:00
multi.cpp Remove useless cast in multi.cpp 2016-07-15 03:43:03 +00:00
multibot.cpp Remove useless cast in multibot.cpp 2016-07-15 03:43:03 +00:00
net_udp.cpp Convert simple int casts from C style to static_cast<> 2016-07-07 03:08:13 +00:00
newdemo.cpp Rewrite simple fix64 casts from C style to static_cast<> 2016-07-07 03:08:13 +00:00
newmenu.cpp Rewrite simple integer casts from C style to static_cast<> 2016-06-05 01:04:26 +00:00
object.cpp Cache reference to local player energy 2016-07-03 00:54:16 +00:00
paging.cpp
physics.cpp Move set_thrust_from_velocity to dcx 2016-07-15 03:43:01 +00:00
piggy.cpp Use constexpr for MAX_BITMAP_FILES 2016-07-14 01:59:05 +00:00
player.cpp
playsave.cpp Rewrite simple pointer casts from C style to reinterpret_cast<> 2016-06-05 01:04:26 +00:00
polyobj.cpp Rewrite simple pointer casts from C style to reinterpret_cast<> 2016-07-03 00:54:15 +00:00
powerup.cpp Allow player to grab invulnerability powerup when FakingInvul 2016-07-14 01:59:04 +00:00
render.cpp Fix -Wshadow warnings in render_compare_context_t 2016-05-21 17:24:51 +00:00
robot.cpp Move various robot data into namespaces 2016-06-25 23:21:36 +00:00
scores.cpp Reverted 81d7db279b and rather removed the terminator byte from string length in nm_set_item_input(). This also fixes possible 9 character length for pilot callsigns. Had to fix up COOL_SAYING_LEN as it was not considering the termintor but considering the original D2 source, this was a mess to begin with (def = 50, text string = 60, input field len = 45). Made score saying 50 characters as this seems to be the maximum witdth without overlapping. 2016-05-30 14:54:51 +02:00
segment.cpp
slew.cpp
songs.cpp
state.cpp Rewrite parenthesized uses of uint to standard unsigned 2016-07-14 01:59:02 +00:00
switch.cpp Always check for valid cside for wall1 2016-04-05 01:10:18 +00:00
terrain.cpp Propagate bm_mode::linear into iff_read_bitmap 2016-05-28 17:31:27 +00:00
texmerge.cpp Improve Error reporting on texmerge consistency failure 2016-06-05 18:45:21 +00:00
text.cpp
titles.cpp Rewrite simple integer casts from C style to static_cast<> 2016-06-05 01:04:26 +00:00
vclip.cpp
vers_id.cpp
wall.cpp Fix -Wshadow warnings in do_door_close 2016-05-21 17:24:50 +00:00
weapon.cpp Move Next_laser_fire_time to player_info 2016-07-06 01:54:26 +00:00