RingRacers/src
Monster Iestyn 0ac63c0949 Merge branch 'lua-lump-load-only' into 'master'
Lua lump load only

This branch prevents the following Lua functions from being used within hooks or coroutines, to prevent netgame desync problems or any other similar oddities when using these weirdly:

* `freeslot()`
* `addHook()`
* `hud.add()`
* `COM_AddCommand()`
* `CV_RegisterVar()`

All of the above should only be called when the Lua script is being loaded (i.e. it takes place the same instant a ".lua" file or a WAD file with a "LUA_" lump is being loaded)

To put it another way:
```
//This is valid usage:
freeslot("MT_TEST")

//This is NOT valid usage
addHook("MobjSpawn", function() freeslot("MT_TEST2") end, MT_PLAYER)

```

See *Monster Iestyn/Lua lump load only* on the FTP for an exe and test script.

See merge request !87
2017-08-05 16:36:05 -04:00
..
android Clipboard copy/paste testing 2016-11-03 01:43:57 -07:00
blua Created lua_blockmaplib.c, for Lua's blockmap library 2016-10-27 18:10:30 +01:00
djgppdos Closed captioning! 2017-04-17 01:09:47 +01:00
dummy Clipboard copy/paste testing 2016-11-03 01:43:57 -07:00
hardware Merge branch 'alignment_v2' into 'master' 2017-08-05 16:04:41 -04:00
locale Fixed forceskin to not always allow due to bad logic. 2016-07-14 13:24:57 +01:00
nds Clipboard copy/paste testing 2016-11-03 01:43:57 -07:00
sdl Turns out we don't need to use SDL_SetWindowTitle on its own, since SDL_CreateWindow already deals with the window title anyway. So I've disabled everything related to Impl_SetWindowName for now 2017-06-25 20:22:01 +01:00
sdl12 Merge branch 'public_next' 2017-05-31 15:18:05 +01:00
win32 Merge branch 'public_next' 2017-05-31 15:18:05 +01:00
win32ce Closed captioning! 2017-04-17 01:09:47 +01:00
.gitignore
am_map.c gcc: clear uninitialized warnings in am_map.c 2016-05-27 14:22:02 -04:00
am_map.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
Android.mk
asm_defs.inc
b_bot.c Increased space in pflags (because we were getting VERY close to full capacity), which I will re-organise when this branch is closer to completion. 2017-03-14 18:11:17 +00:00
b_bot.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
byteptr.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
CMakeLists.txt Merge branch 'public_next' 2017-01-19 16:54:47 +00:00
command.c Merge branch 'master' of http://git.magicalgirl.moe/STJr/SRB2Internal.git into charabilities_mk3 2017-04-04 21:03:35 +01:00
command.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
comptime.c Branch and revision information in builds 2016-03-14 12:43:08 -04:00
config.h.in update patch stuff again. 2016-05-04 05:43:05 -07:00
console.c Merge branch 'master' of http://git.magicalgirl.moe/STJr/SRB2Internal.git into addfile_menu 2017-05-06 23:24:21 +01:00
console.h make console back color use just one section of memory 2016-11-02 14:26:35 -07:00
d_clisrv.c Merge branch 'public_next' 2017-07-08 17:49:54 +01:00
d_clisrv.h * Menu always updates for file load... by doing the refresh in the drawing function, eep. Oh well. 2017-05-03 22:36:08 +01:00
d_event.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
d_main.c Merge branch 'addfile_menu' into 'master' 2017-08-05 16:05:12 -04:00
d_main.h Removed unused function prototypes in d_main.h 2017-02-11 22:56:08 +00:00
d_net.c Merge branch 'public_next' 2017-05-31 15:18:05 +01:00
d_net.h -Added a timeout for game state downloading to prevent definitive join freezes in some cases. The timeout has a minimum value of "jointimeout" and gets higher as the game state grows in size 2017-01-13 20:53:52 +01:00
d_netcmd.c Merge branch 'addfile_menu' into 'master' 2017-08-05 16:05:12 -04:00
d_netcmd.h Merge branch 'master' of http://git.magicalgirl.moe/STJr/SRB2Internal.git into Deez_NewUserXperiences 2017-04-19 23:03:47 +01:00
d_netfil.c Merge branch 'addfile_menu' into 'master' 2017-08-05 16:05:12 -04:00
d_netfil.h Merge branch 'addfile_menu' into 'master' 2017-08-05 16:05:12 -04:00
d_player.h Mutiability flag-ised as requested by Rob. 2017-03-27 15:03:21 +01:00
d_think.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
d_ticcmd.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
dehacked.c Merge branch 'lua-lump-load-only' into 'master' 2017-08-05 16:36:05 -04:00
dehacked.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
doomdata.h SUPERCOLOR BONANZA COMMIT. 2016-08-10 19:48:20 +01:00
doomdef.h Merge branch 'public_next' 2017-06-23 17:19:06 +01:00
doomstat.h Emerald tokens being used as actual game tokens on the end-of-act screen! 2017-04-24 21:56:17 +01:00
doomtype.h Get rid of stack overflow code because filesystem case insensitivity is Windows exlcusive, so we can just create a wrapper function for there instead of rolling our own. 2017-05-06 13:37:10 +01:00
endian.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
f_finale.c Moved Y_EndGame from y_inter.c/h to g_game.c/h, renamed it to G_EndGame 2017-05-18 16:54:58 +01:00
f_finale.h FUNCMATH fun 2016-06-12 16:08:48 -04:00
f_wipe.c Introducing pMasterPalette. 2017-04-30 22:18:06 +01:00
fastcmp.h
filesrch.c Minor refactor, plus cutting out a potential bug of setting dir_on[] to -1. 2017-05-24 20:55:35 +01:00
filesrch.h Thanks Alam for letting me know I was messing up! 2017-05-09 14:09:09 +01:00
g_game.c Merge branch 'public_next' 2017-06-23 17:19:06 +01:00
g_game.h Merge branch 'public_next' 2017-06-23 17:19:06 +01:00
g_input.c First part of revamp: Removing Camera Rotate L/R keys, and giving the two situations where they had any unique functionality (Analog mode and NiGHTS objectplace) suitable replacements. 2017-04-14 20:29:08 +01:00
g_input.h Merge branch 'master' of http://git.magicalgirl.moe/STJr/SRB2Internal.git into Deez_NewUserXperiences 2017-04-19 23:03:47 +01:00
g_state.h Remove extern for unused "oncontinuescreen" variable 2016-05-18 17:41:11 +01:00
hu_stuff.c Emerald tokens being used as actual game tokens on the end-of-act screen! 2017-04-24 21:56:17 +01:00
hu_stuff.h More feature-rich and better engineered. 2017-05-02 11:51:37 +01:00
i_addrinfo.c MSVC: fixed up MSVC project 2016-05-21 23:53:04 -04:00
i_addrinfo.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
i_joy.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
i_net.h -Added a timeout for game state downloading to prevent definitive join freezes in some cases. The timeout has a minimum value of "jointimeout" and gets higher as the game state grows in size 2017-01-13 20:53:52 +01:00
i_sound.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
i_system.h Clipboard copy/paste testing 2016-11-03 01:43:57 -07:00
i_tcp.c DEBUGMODE -> _DEBUG =) 2017-01-14 19:24:22 +01:00
i_tcp.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
i_video.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
info.c Merge branch 'nights_emblems' into 'master' 2017-08-05 16:03:33 -04:00
info.h Merge branch 'nights_emblems' into 'master' 2017-08-05 16:03:33 -04:00
keys.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
lua_baselib.c There are now captions for specific types of music! (Currently signified with an M, but I'll change that in a bit...) A whole lotta things needed to be modified for this, though. 2017-04-29 16:27:52 +01:00
lua_blockmaplib.c <Alam_Squeeze> lua_blockmaplib.c:269:7: no newline at end of file 2017-05-09 14:18:45 +01:00
lua_consolelib.c Added the "lua_lumploading" variable for restricting certain Lua functions to lump load time only 2017-04-25 21:45:53 +01:00
lua_hook.h Add the "MapThingSpawn" hook to Lua 2017-04-15 21:41:22 +01:00
lua_hooklib.c Merge branch 'master' into lua-lump-load-only 2017-07-09 15:06:15 +01:00
lua_hud.h More consistent comment. 2016-08-19 00:07:32 +01:00
lua_hudlib.c Added the "lua_lumploading" variable for restricting certain Lua functions to lump load time only 2017-04-25 21:45:53 +01:00
lua_infolib.c There are now captions for specific types of music! (Currently signified with an M, but I'll change that in a bit...) A whole lotta things needed to be modified for this, though. 2017-04-29 16:27:52 +01:00
lua_libs.h Disabled all seg_t/node_t-related Lua code for now 2016-11-24 21:11:44 +00:00
lua_maplib.c Added in-level checks to a lot of these functions and tables for Lua use 2017-01-18 22:02:28 +00:00
lua_mathlib.c Merge branch 'public_next' into master 2016-05-20 17:58:57 -04:00
lua_mobjlib.c Let's not use terms like this so plainly, right? 2017-03-18 14:20:42 +00:00
lua_playerlib.c Big commit, sorry. I broke several things trying to get other things to work and it's only now that all the code that worked yesterday works today! 2017-03-22 18:51:30 +00:00
lua_script.c Merge branch 'master' into lua-lump-load-only 2017-07-09 15:06:15 +01:00
lua_script.h Added the "lua_lumploading" variable for restricting certain Lua functions to lump load time only 2017-04-25 21:45:53 +01:00
lua_skinlib.c NiGHTS is now spr2-ised. i'll upload the relevant files and etc to the ftp 2016-08-12 02:57:37 +01:00
lua_thinkerlib.c Merge branch 'public_next' 2017-05-31 15:18:05 +01:00
lzf.c define SRTICT_ALIGN to - if the system is x86/x64 system 2016-07-23 23:26:08 -04:00
lzf.h
m_aatree.c Split AA trees code from m_misc.c/.h into m_aatree.c/.h 2016-06-05 21:29:40 +01:00
m_aatree.h m_aatree: add newline 2016-12-22 19:39:37 -05:00
m_anigif.c Introducing pMasterPalette. 2017-04-30 22:18:06 +01:00
m_anigif.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
m_argv.c copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
m_argv.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
m_bbox.c copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
m_bbox.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
m_cheat.c First part of revamp: Removing Camera Rotate L/R keys, and giving the two situations where they had any unique functionality (Analog mode and NiGHTS objectplace) suitable replacements. 2017-04-14 20:29:08 +01:00
m_cheat.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
m_cond.c Ended up being stressed and not getting any real work done, so figured I'd finish up the checklist system. 2017-04-23 00:16:09 +01:00
m_cond.h Fix inconsistencies in spacing in m_cond.h 2017-05-09 16:28:20 +01:00
m_dllist.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
m_fixed.c copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
m_fixed.h Merge branch 'master' into next 2017-01-03 16:06:50 +00:00
m_menu.c Don't need this addition any more. 2017-05-27 13:13:00 +01:00
m_menu.h Good: 2017-05-07 17:14:57 +01:00
m_misc.c Change from "on/off" to "yes/no" - makes more sense here 2017-05-07 20:50:48 +01:00
m_misc.h Disable colour profile influence on screenshots and gifs if you want. 2017-04-20 18:59:27 +01:00
m_queue.c copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
m_queue.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
m_random.c copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
m_random.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
m_swap.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
Makefile Makefile: disable GETTEXT by default 2017-05-26 18:10:53 -04:00
Makefile.cfg Makefile: disable GETTEXT by default 2017-05-26 18:10:53 -04:00
md5.c copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
md5.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
mserv.c copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
mserv.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
p5prof.h
p_ceilng.c copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
p_enemy.c * Invert solidity flag for vertical spikes and wallspikes. 2017-07-19 17:07:31 +01:00
p_floor.c Merge branch 'public_next' 2017-07-25 17:17:22 +01:00
p_inter.c Merge branch 'nights_emblems' into 'master' 2017-08-05 16:03:33 -04:00
p_lights.c copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
p_local.h Merge branch 'mi-a-bit-of-cleanup' into 'master' 2017-04-17 14:43:50 -04:00
p_map.c Okay, actually fixed. Thanks, MI, for understanding the maths a little better than I :p 2017-07-30 17:45:27 +01:00
p_maputl.c Created R_GetTextureNum to make sure top/bottom/midtexture texture ids are always valid in rendering code for both software and OpenGL (and also for the Solid Midtexture effect physics code) 2016-12-16 21:38:53 +00:00
p_maputl.h P_LineOpening now takes a mobj_t argument, instead of relying on tmthing 2016-08-13 21:41:18 +01:00
p_mobj.c Merge branch 'nights_emblems' into 'master' 2017-08-05 16:03:33 -04:00
p_mobj.h Merge branch 'master' of http://git.magicalgirl.moe/STJr/SRB2Internal.git into shield-actions 2016-11-20 16:44:38 +00:00
p_polyobj.c Whooh boy. Probably requires re-review. 2017-07-18 14:17:23 +01:00
p_polyobj.h Merge branch 'public_next' into master 2016-05-20 17:58:57 -04:00
p_pspr.h * SPR2_DRL0-C are gone. They're now (FF_SPR2SUPER|SPR2_NGT0-C). This frees up a bunch of badly-used freeslots, considering that you can't be super AND NiGHTS at the same time. 2017-03-11 17:14:39 +00:00
p_saveg.c Big commit, sorry. I broke several things trying to get other things to work and it's only now that all the code that worked yesterday works today! 2017-03-22 18:51:30 +00:00
p_saveg.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
p_setup.c Merge branch 'addfile_menu' into 'master' 2017-08-05 16:05:12 -04:00
p_setup.h Merge branch 'vada_flickies' into 'master' 2017-01-08 17:36:25 -05:00
p_sight.c Fixed P_CheckSight not considering polyobject top and bottom at all 2017-04-19 22:19:46 +01:00
p_slopes.c * Put all of the wall transfer code in one place. 2017-01-23 17:23:42 +00:00
p_slopes.h * Put all of the wall transfer code in one place. 2017-01-23 17:23:42 +00:00
p_spec.c Merge branch 'alignment_v2' into 'master' 2017-08-05 16:04:41 -04:00
p_spec.h Merge branch 'level-specials-setup-stuff' into 'master' 2017-05-08 15:15:50 -04:00
p_telept.c Increased space in pflags (because we were getting VERY close to full capacity), which I will re-organise when this branch is closer to completion. 2017-03-14 18:11:17 +00:00
p_tick.c Merge branch 'master' into damage-control 2016-05-25 15:33:09 +01:00
p_tick.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
p_user.c Merge branch 'wallspike_tweaks' into 'master' 2017-08-04 14:28:44 -04:00
r_bsp.c Do not draw segs that belong to polyobjects, if you're drawing subsectors adjacent to them 2017-06-03 17:47:46 +01:00
r_bsp.h Remove unused drawfunc_t function typedef 2016-05-24 14:38:31 +01:00
r_data.c Merge branch 'public_next' 2017-05-17 16:19:01 +01:00
r_data.h Whitespace indenting. 2017-03-12 20:26:45 +01:00
r_defs.h Merge branch 'public_next' 2017-01-08 16:05:32 +00:00
r_draw.c Fixing the fuckup I made when creating the new palette. 2017-04-06 16:42:52 +01:00
r_draw.h Add R_Draw2sMultiPatchTranslucentColumn_8, for columns of multi-patch textures used as midtextures on two-sided linedefs with both transparency AND translucency 2016-11-16 18:43:25 +00:00
r_draw8.c Add R_Draw2sMultiPatchTranslucentColumn_8, for columns of multi-patch textures used as midtextures on two-sided linedefs with both transparency AND translucency 2016-11-16 18:43:25 +00:00
r_draw16.c copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
r_local.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
r_main.c Use the skybox mobj's actual z position, rather than using the spawnpoint angle! 2017-04-26 17:12:57 +01:00
r_main.h Remove all traces of SSN's old port of ZDoom's secplanes for slopes, since our slopes do not need them 2017-01-02 19:12:09 +00:00
r_plane.c Add a helpful comment in order to make people who look at this in future suffer less. 2017-04-10 11:41:26 +01:00
r_plane.h R_FindPlane now has a polyobj argument, R_DrawPlanes now skips polyobj planes, like it does with FOF planes 2016-10-09 21:48:25 +01:00
r_segs.c Merge branch 'public_next' 2017-03-13 18:25:26 +00:00
r_segs.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
r_sky.c copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
r_sky.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
r_splats.c copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
r_splats.h FUNCMATH fun 2016-06-12 16:08:48 -04:00
r_state.h Remove unused sscount variable 2017-02-11 22:41:15 +00:00
r_things.c fix inaccurate SC_FULLBRIGHT declarations 2017-06-26 16:30:23 +01:00
r_things.h * Change the order of operations such that linkdraw sprites aren't ever used for ordering comparisons with non-linkdraw sprites. 2017-06-26 14:44:10 +01:00
s_sound.c <Alam_Squeeze> s_sound.c: In function `S_StartCaption': 2017-05-09 14:42:23 +01:00
s_sound.h Reset captions where appropriate (including in S_StopSounds(), as it should have been doing all along). 2017-04-29 17:53:24 +01:00
screen.c Improve captions code clarity, and also make music captions flash before they disappear. 2017-04-30 11:16:31 +01:00
screen.h Closed captioning! 2017-04-17 01:09:47 +01:00
sounds.c More sound naming consistency! (Sorry.) 2017-05-01 13:48:20 +01:00
sounds.h Closed captioning! 2017-04-17 01:09:47 +01:00
st_stuff.c Got rid of redundant writes. 2017-04-30 18:15:46 +01:00
st_stuff.h FUNCMATH fun 2016-06-12 16:08:48 -04:00
string.c Accidentially removed newline 2017-05-09 14:22:53 +01:00
t_facon.c remove blank lines at EOF of new files 2016-05-13 00:12:51 -04:00
t_fsin.c remove blank lines at EOF of new files 2016-05-13 00:12:51 -04:00
t_ftan.c remove blank lines at EOF of new files 2016-05-13 00:12:51 -04:00
t_tan2a.c remove blank lines at EOF of new files 2016-05-13 00:12:51 -04:00
tables.c copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
tables.h FUNCMATH fun 2016-06-12 16:08:48 -04:00
tmap.nas Merge branch 'public_next' into master 2016-05-20 17:58:57 -04:00
tmap.s copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
tmap_asm.s copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
tmap_mmx.nas Merge branch 'public_next' into master 2016-05-20 17:58:57 -04:00
tmap_vc.nas copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
v_video.c Fix typo. 2017-05-01 11:40:02 +01:00
v_video.h Introducing pMasterPalette. 2017-04-30 22:18:06 +01:00
vid_copy.s copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
w_wad.c Store importance (nmuslumps check) to prevent having to do it again when doing d_netfil stuff. 2017-05-27 14:01:26 +01:00
w_wad.h Store importance (nmuslumps check) to prevent having to do it again when doing d_netfil stuff. 2017-05-27 14:01:26 +01:00
y_inter.c Fix whitespace goofup of mine 2017-07-09 15:08:17 +01:00
y_inter.h Moved Y_EndGame from y_inter.c/h to g_game.c/h, renamed it to G_EndGame 2017-05-18 16:54:58 +01:00
z_zone.c copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00
z_zone.h copyright dates/statements updated and such 2016-05-17 17:42:11 -07:00