dhewm3/neo/game
Daniel Gibson a7e4eb8644 Fix renderlights loaded from savegames aliasing other lights
Some entities wrote the handle from gameRenderWorld->AddLightDef()
into savegames and reused it after restoring it.
That's a bad idea, because at that point the handle most likely belongs
to something else (likely some idLight). The most visible issue this
can create is that the flashlight may not work correctly after loading
a savegame with flashlight on, when it happens to alias a light that's
updated each frame to (mostly) being off..

The correct way to handle this (THAT FOR SOME REASON WAS ALREADY
IMPLEMENTED IN D3XP BUT NOT THE BASE GAME - WHY?!) is to get a fresh
handle with AddLightDef() when restoring a savegame - unless the handle
was -1, which means that the light didn't exist when saving.

fixes #495
2022-11-06 18:12:54 +01:00
..
ai import AROS changes 2017-04-02 00:42:28 +01:00
anim More logging cleanup 2012-07-20 00:12:55 +02:00
gamesys Fix most (according to warnings) remaining 64bit issues in tool code 2021-05-08 05:43:52 +02:00
physics Work around assertion in alphalabs4, fix #409 2022-05-16 05:43:47 +02:00
script Add some missing newlines and fix typo in changelog 2022-05-21 06:30:54 +02:00
Actor.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Actor.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
AF.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
AF.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
AFEntity.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
AFEntity.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
BrittleFracture.cpp Fix "unreachable code" warnings 2012-01-15 14:13:44 +01:00
BrittleFracture.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Camera.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Camera.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
EndLevel.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
EndLevel.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Entity.cpp StartSoundShader() event: special-case for soundName "", refs #494 2022-10-31 03:20:57 +01:00
Entity.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Fx.cpp s/ReadLong/ReadInt/ to match the return type 2012-06-28 13:52:24 +02:00
Fx.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Game_local.cpp HARDLINK_GAME option in cmake 2022-11-06 03:09:05 +01:00
Game_local.h rev feedback v1. 2021-07-01 01:09:15 +02:00
Game_network.cpp Use idStr::Copynz() instead of strncpy() 2022-01-08 16:58:48 +01:00
GameBase.h Split Game_local.h 2011-12-19 23:21:41 +01:00
GameEdit.cpp - Unbreaking Game and GameEdit API / ABI for game debugger use 2021-06-28 23:38:38 +02:00
GameEdit.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
IK.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
IK.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Item.cpp Fix "unreachable code" warnings 2012-01-15 14:13:44 +01:00
Item.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Light.cpp s/ReadLong/ReadInt/ to match the return type 2012-06-28 13:52:24 +02:00
Light.h Fix -Woverloaded-virtual warnings 2011-12-22 12:33:27 +01:00
Misc.cpp Fix "unreachable code" warnings 2012-01-15 14:13:44 +01:00
Misc.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Moveable.cpp Fix renderlights loaded from savegames aliasing other lights 2022-11-06 18:12:54 +01:00
Moveable.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Mover.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Mover.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
MultiplayerGame.cpp s/ReadLong/ReadInt/ to match the return type 2012-06-28 13:52:24 +02:00
MultiplayerGame.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Player.cpp Fix lingering messages in HUD after loading savegame 2020-07-27 03:39:12 +02:00
Player.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
PlayerIcon.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
PlayerIcon.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
PlayerView.cpp Use g_hitEffect CVar variable directly instead of getting it by name 2020-05-30 05:41:22 +02:00
PlayerView.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Projectile.cpp Fix renderlights loaded from savegames aliasing other lights 2022-11-06 18:12:54 +01:00
Projectile.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Pvs.cpp Fix new[]/delete missmatches and memory leaks found by clang's ASAN 2015-12-17 18:11:03 +01:00
Pvs.h Rename PVS vars to match their type 2012-06-28 13:52:26 +02:00
SecurityCamera.cpp make base build with Visual Studio 14 2015-10-11 23:27:42 +02:00
SecurityCamera.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
SmokeParticles.cpp Fix some ubsan warnings 2022-11-06 03:09:05 +01:00
SmokeParticles.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Sound.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Sound.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Target.cpp Get rid of ID_DEMO_BUILD 2012-07-03 21:12:55 +02:00
Target.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Trigger.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Trigger.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Weapon.cpp Fix renderlights loaded from savegames aliasing other lights 2022-11-06 18:12:54 +01:00
Weapon.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
WorldSpawn.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
WorldSpawn.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00