raze/source/duke3d/src
terminx b0a4b6a1ee Convert loops using unsigned integers as iterators to use regular signed ints instead
https://kristerw.blogspot.com/2016/02/how-undefined-signed-overflow-enables.html

Doing this as cleanly as possible involved demoting several function parameters concerning object sizes and counts from size_t to int--I'm fine with this change as the functions in question are not actually capable of handling input with sizes larger than what can be stored in a signed 32-bit integer, making the use of size_t here misleading at best.

git-svn-id: https://svn.eduke32.com/eduke32@7673 1a8010ca-5511-0410-912e-c29ae57300e0

# Conflicts:
#	source/build/src/polymost.cpp
#	source/build/src/texcache.cpp
#	source/build/src/tilepacker.cpp
2019-09-20 10:04:24 +02:00
..
lunatic Backport some CON profiling stuff from Lunatic. Use "printtimes" in the console. 2018-03-08 00:29:41 +00:00
_functio.h Add C as a secondary binding for crouch and remove the mouse look and crosshair toggles from the default key bindings--they can still be bound manually if desired. 2019-01-22 22:51:04 +00:00
_midi.h The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
_rts.h Add buildvfs, abstraction layer for file I/O. 2019-03-01 08:51:50 +00:00
actors.cpp Convert loops using unsigned integers as iterators to use regular signed ints instead 2019-09-20 10:04:24 +02:00
actors.h Add SFLAG_QUEUEDFORDELETE, to handle detection and manipulation of things like decal sprites marked for deletion 2019-09-19 14:51:41 +02:00
android.h Bring the previous commit into effect. 2017-02-01 10:20:54 +00:00
anim.cpp Convert loops using unsigned integers as iterators to use regular signed ints instead 2019-09-20 10:04:24 +02:00
anim.h Cleanup includes 2018-11-18 18:09:48 +00:00
astub.cpp Templatize bfirst_search_init() and bfirst_search_try() so they can be used with types other than int16_t 2019-09-20 09:20:14 +02:00
cheats.cpp Use range-based loops for simplicity 2018-10-25 23:33:40 +00:00
cheats.h Cleanup includes 2018-11-18 18:09:48 +00:00
cmdline.cpp - Packet code implementation (merge from private c/s repo), world updates are now synced through snapshots. See tag SVN_SyncPoint_Dec2018 on master of the other repo. 2018-12-08 00:40:39 +00:00
cmdline.h Fix issue with a couple symbols from cmdline.h sometimes picking up different linkage due to accidental double definition in game.h 2018-11-18 19:03:40 +00:00
common.cpp - can be compiled again but crashes. 2019-09-19 23:02:57 +02:00
common_game.h Add buildvfs, abstraction layer for file I/O. 2019-03-01 08:51:50 +00:00
config.cpp Fix issue where "unbound" without a control name afterward would end up in settings.cfg when dealing with disabled gamefuncs 2019-09-19 14:20:51 +02:00
config.h After parsing the cfg, fill in the default bindings for any control functions that are completely missing, with function unbound and key unused by anything else. 2018-11-18 18:12:21 +00:00
demo.cpp CON VM maintenance 2019-09-20 10:01:22 +02:00
demo.h Add buildvfs, abstraction layer for file I/O. 2019-03-01 08:51:50 +00:00
duke3d.h Rename net.* to network.* 2019-09-19 12:20:45 +02:00
events_defs.h CON: Add EVENT_DISPLAYROOMSCAMERATILE 2019-01-22 17:56:34 +00:00
function.h Add quick save and quick load to the keyboard configuration menu 2018-05-04 22:42:31 +00:00
game.cpp Convert loops using unsigned integers as iterators to use regular signed ints instead 2019-09-20 10:04:24 +02:00
game.h Utilize the types added in the previous commit 2019-09-19 14:46:31 +02:00
gamedef.cpp Make CLIPMASK0 and CLIPMASK1 regular defined tokens instead of read-only gamevars 2019-09-20 10:01:35 +02:00
gamedef.h Patch from Fox to access the player's subweapon member as a bitfield 2019-09-20 10:01:44 +02:00
gamedefs.h Lower DEFAULTMOUSESENSITIVITY to 4 2018-10-25 23:32:57 +00:00
gameexec.cpp Better stupid names for stupid macros in stupid function 2019-09-20 10:01:48 +02:00
gameexec.h Fix actor z position update bug 2019-09-20 10:01:42 +02:00
GameListSource.game.h The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
GameListSource.game.mm The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
gamestructures.cpp Patch from Fox to access the player's subweapon member as a bitfield 2019-09-20 10:01:44 +02:00
gamevars.cpp EDUKE32_STANDALONE stuff 2019-09-20 10:01:40 +02:00
gamevars.h Add GAMEVAR_RAWQ16PTR, functioning the same as GAMEVAR_INT32PTR 2019-09-20 10:01:37 +02:00
global.cpp Slightly revise framerate limiter and r_showfps 2 display 2019-01-12 00:21:53 +00:00
global.h Slightly revise framerate limiter and r_showfps 2 display 2019-01-12 00:21:53 +00:00
GrpFile.game.h The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
GrpFile.game.mm The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
grpscan.cpp Add buildvfs, abstraction layer for file I/O. 2019-03-01 08:51:50 +00:00
grpscan.h Add "rtsname" token to grpinfo grammar. 2018-02-11 05:03:55 +00:00
in_android.cpp Bring the previous commit into effect. 2017-02-01 10:20:54 +00:00
in_android.h The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
input.cpp Beginnings of baselayer.cpp/.h refactor. This is 99.9% renames. 2018-04-12 21:02:31 +00:00
input.h The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
inv.h Move addinventory command code into its own function. 2017-07-05 05:38:02 +00:00
keys.h The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
m32common.cpp Fix a bunch of improperly defined bitmap arrays 2019-09-19 14:36:54 +02:00
m32def.cpp Add buildvfs, abstraction layer for file I/O. 2019-03-01 08:51:50 +00:00
m32def.h Utilize the types added in the previous commit 2019-09-19 14:46:31 +02:00
m32exec.cpp Rename Gv_SetVarX() to Gv_SetVar() (overloaded) 2019-09-20 09:38:41 +02:00
m32structures.cpp Rename Gv_SetVarX() to Gv_SetVar() (overloaded) 2019-09-20 09:38:41 +02:00
m32vars.cpp Rename Gv_SetVarX() to Gv_SetVar() (overloaded) 2019-09-20 09:38:41 +02:00
macros.h WIP wall texture rotation bit 2018-11-18 18:13:48 +00:00
mapster32.h The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
mdump.cpp Just cleaning up a dump(er) 2018-11-18 18:06:38 +00:00
mdump.h Route inclusion of all Windows headers through a new header, windows_inc.h. 2017-02-19 22:15:44 +00:00
menus.cpp - do not force the tile shades mode for now without re_adding the removed variable. 2019-09-19 11:02:05 +02:00
menus.h Fix usages of tab characters that slipped into menus.h at some point, and fix declaration of function Menu_Change() to match its definition 2018-10-25 23:34:03 +00:00
midi.cpp MIDI/Windows: Immediately MPU_Init after MPU_Reset so that MIDI_Reset can take effect. 2018-03-22 04:48:57 +00:00
midi.h The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
mpu401.cpp Completely unused struct...? 2018-10-25 23:29:49 +00:00
mpu401.h The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
music.cpp Fix MIDI playback on non-Windows platforms 2018-05-19 14:14:18 +00:00
names.h The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
namesdyn.cpp Sorting and formatting for [names|sound]dyn.[cpp|h] 2018-11-18 18:09:58 +00:00
namesdyn.h Sorting and formatting for [names|sound]dyn.[cpp|h] 2018-11-18 18:09:58 +00:00
network.cpp Convert loops using unsigned integers as iterators to use regular signed ints instead 2019-09-20 10:04:24 +02:00
network.h Rename net.* to network.* 2019-09-19 12:20:45 +02:00
osdcmds.cpp Fix a bunch of boolean cvars that weren't flagged as CVAR_BOOL, preventing them from working with the "toggle" console command 2019-09-20 09:38:14 +02:00
osdcmds.h Remove the "ConsoleKeys[]" array from osdcmds.cpp in favor of accessing mact's sctokeylut[] 2018-11-18 18:08:38 +00:00
osdfuncs.cpp Same shit, different diff 2018-11-18 18:06:27 +00:00
osdfuncs.h Use "int" for OSD command return values and a few trivial globals. Our current usage of the return values would have even worked with bool, but we might want to add error conditions or something later. 2018-11-18 18:05:45 +00:00
player.cpp Fix longstanding player hitscan and decal z coordinate offset bug 2019-09-19 14:58:12 +02:00
player.h Utilize the types added in the previous commit 2019-09-19 14:46:31 +02:00
premap.cpp This is more efficient 2019-09-20 09:19:42 +02:00
premap.h More premap cleanup 2018-11-18 18:08:14 +00:00
quotes.h The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
rts.cpp Add buildvfs, abstraction layer for file I/O. 2019-03-01 08:51:50 +00:00
rts.h The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
savegame.cpp Fix a bunch of improperly defined bitmap arrays 2019-09-19 14:36:54 +02:00
savegame.h Use bitmap manipulation functions for "bitptr" 2019-09-19 13:51:43 +02:00
sbar.cpp Fix the direction which the shadow is cast in "modern" status bar ammo icon 2019-02-18 22:02:38 +00:00
sbar.h Remove the implicit "static" from our FORCE_INLINE macro. 2017-02-25 08:15:53 +00:00
screens.cpp Use function overloading to clean up some of the CON event execution function names 2019-09-20 09:21:37 +02:00
screens.h Respect r_maxfps in menus and on startup/bonus/end screens 2017-06-23 03:59:26 +00:00
screentext.cpp Convert loops using unsigned integers as iterators to use regular signed ints instead 2019-09-20 10:04:24 +02:00
screentext.h Update duke3d headers so that argument names in function declarations match the actual function definitions. This also removes const from function declarations in cases when it isn't meaningful. 2018-10-16 06:08:58 +00:00
sdlmusic.cpp Add buildvfs, abstraction layer for file I/O. 2019-03-01 08:51:50 +00:00
sector.cpp Convert loops using unsigned integers as iterators to use regular signed ints instead 2019-09-20 10:04:24 +02:00
sector.h Piddly fart bullshit changes that don't really do anything 2019-09-19 14:52:31 +02:00
soundefs.h The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
sounds.cpp - sound system additions from NBlood, except for the backing code for OPL playback. 2019-09-19 20:22:09 +02:00
sounds.h - sound system additions from NBlood, except for the backing code for OPL playback. 2019-09-19 20:22:09 +02:00
sounds_common.h The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
sounds_mapster32.cpp Fix a bunch of improperly defined bitmap arrays 2019-09-19 14:36:54 +02:00
sounds_mapster32.h The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
soundsdyn.cpp Sorting and formatting for [names|sound]dyn.[cpp|h] 2018-11-18 18:09:58 +00:00
soundsdyn.h Sorting and formatting for [names|sound]dyn.[cpp|h] 2018-11-18 18:09:58 +00:00
startgtk.game.cpp Fix issue with a couple symbols from cmdline.h sometimes picking up different linkage due to accidental double definition in game.h 2018-11-18 19:03:40 +00:00
startosx.game.mm macOS build fix. DONT_BUILD. 2018-12-15 20:17:03 +00:00
startwin.game.cpp Minor start window cleanup. This ended up touching a bunch of other files due to variable renaming, but there are zero functional changes to anything but the startup window in this commit. 2018-11-18 18:13:02 +00:00
startwin.game.h The great repository rearrangement of 2017. 2017-02-01 10:01:11 +00:00
winbits.cpp Clean up error handling in shitty G_GetVersionFromWebsite() function 2018-10-10 19:14:41 +00:00