dhewm3/neo/d3xp
Daniel Gibson 3ad384a0da Fix script interpreter on 64bit Big Endian platforms
idInterpreter::Push() is used only for int and (reinterpreted) float
values, not pointers (as far as I can tell), so 32bit values on all
relevant platforms.
It stored its value as intptr_t at `&localstack[ localstackUsed ]` - on
64bit platforms intptr_t is 64bit.
Unfortunately, all code reading from the stack just get got a pointer
to `&localstack[ localstackUsed ]` in the type they want to read
(like `int*` or `float*`) and read that. On Little Endian that happens
to work, on 64bit Big Endian it reads the wrong 4 bytes of the intptr_t,
so it doesn't work.

fixes #625, #472
2024-10-31 03:18:33 +01:00
..
ai Fixup: typo: 'hiehgt' -> 'height' in a few places around the codebase 2023-02-04 19:34:29 +01:00
anim Fix/work around other misc. compiler warnings 2023-01-05 09:06:34 +01:00
gamesys idClass::operator new() and delete: align to intptr_t 2024-10-31 03:18:33 +01:00
physics Work around assertion in alphalabs4, fix #409 2022-05-16 05:43:47 +02:00
script Fix script interpreter on 64bit Big Endian platforms 2024-10-31 03:18:33 +01: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 Fix/work around other misc. compiler warnings 2023-01-05 09:06:34 +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 Detect endianess in CMakeLists.txt, get rid of most SDL_endian.h uses 2024-10-07 03:15:50 +02:00
Game_local.h - Unbreaking Game and GameEdit API / ABI for game debugger use 2021-06-28 23:38:38 +02:00
Game_network.cpp Fix -Wformat-security warnings - thanks James Addison! 2023-01-05 04:45:34 +01:00
GameBase.h Split Game_local.h 2011-12-19 23:21:41 +01:00
GameEdit.cpp Add some missing newlines and fix typo in changelog 2022-05-21 06:30:54 +02:00
GameEdit.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Grabber.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Grabber.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 s/ReadLong/ReadInt/ to match the return type 2012-06-28 13:52:24 +02: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 Fix -Wformat-security warnings - thanks James Addison! 2023-01-05 04:45:34 +01:00
MultiplayerGame.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Player.cpp Make Sys_SetInteractiveIngameGuiActive() work better 2024-03-17 04:03:27 +01: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 s/ReadLong/ReadInt/ to match the return type 2012-06-28 13:52:24 +02:00
Projectile.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Pvs.cpp Fix/work around other misc. compiler warnings 2023-01-05 09:06:34 +01:00
Pvs.h Rename PVS vars to match their type 2012-06-28 13:52:26 +02:00
SecurityCamera.cpp make d3xp 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 Initialize variabls ubsan complained about 2024-03-20 18:32:26 +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 Revert changes for Demo to d3xp/ - Demo only needs game/ code 2019-01-07 15:06:59 +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