1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-01-24 17:26:41 +00:00
Aquaria/BBGE
fgenesis 7b8f540c7e Fixes to skel keyframe handling that would usually skip the first keyframe
This didn't seem to cause problems since apparently nothing ever depended
on the first keyframe being processed properly (ie. animationKey(),
bone commands, sounds, particle spawning, etc).
Curiously this was never an issue in the editor since the first keyframe
is hit immediately (since it keeps the time clamped to 0 when not animating),
and the first keyframe triggered ONLY when t==0 exactly.

With this change no keyframes are skipped, and during an animation loop,
the last and the first keyframe are hit together.
entity_setAnimationTime() got an extra param whether to skip keyframes
when setting the time manually (if not skipping, it'll catch up).

This commit also fixes a bug(?) that animationKey() was called with key -1
when changing animations, which was a side-effect of how the old code worked.
(I hope nothing depended on this behavior, i'm not sure but i think it's safe to fix)
2025-01-17 05:38:07 +01:00
..
ActionInput.cpp warning fixes, signed vs unsigned mismatch, cleanups, c++98 compat 2024-04-16 01:43:36 +02:00
ActionInput.h temp commit 2018-01-21 12:47:32 +01:00
ActionMapper.cpp Get rid of a lot of gcc warnings 2021-01-11 12:28:27 +01:00
ActionMapper.h Fix ACTION_MENU* input to be sent as intended, broke in a7c2d054a2 iirc 2021-01-12 14:24:30 +01:00
ActionSet.cpp warning fixes, signed vs unsigned mismatch, cleanups, c++98 compat 2024-04-16 01:43:36 +02:00
ActionSet.h warning fixes, signed vs unsigned mismatch, cleanups, c++98 compat 2024-04-16 01:43:36 +02:00
ActionStatus.cpp Add MOUSE_BUTTON_REAL_* mapping IDs because sometimes we need to handle unmapped mouse buttons 2024-09-22 02:36:18 +02:00
ActionStatus.h Add MOUSE_BUTTON_REAL_* mapping IDs because sometimes we need to handle unmapped mouse buttons 2024-09-22 02:36:18 +02:00
AfterEffect.cpp Changes to rendering logic, incl water surface flicker fix, plus other fixes. 2024-04-25 03:33:02 +02:00
AfterEffect.h Changes to rendering logic, incl water surface flicker fix, plus other fixes. 2024-04-25 03:33:02 +02:00
Base.cpp make dmon optional at compile time, and a dedicated runtime option 2024-06-27 23:43:26 +02:00
Base.h make dmon optional at compile time, and a dedicated runtime option 2024-06-27 23:43:26 +02:00
BaseText.h Build fixes for Linux, some warnings and compatibility fixes for C++17 and up 2023-05-25 16:58:08 +02:00
bithacks.h remove zlib, libpng, glpng and related code; add some stb libs; rework texture loading 2022-03-31 21:03:40 +02:00
BitmapFont.cpp warning fixes, signed vs unsigned mismatch, cleanups, c++98 compat 2024-04-16 01:43:36 +02:00
BitmapFont.h BmpFont usage is now a ref instead of a ptr, const-ify glfont 2023-05-31 17:08:52 +02:00
CMakeLists.txt more fixes and improvements to anim editor; eliminate OutlineRect 2025-01-12 18:42:58 +01:00
Cocoa.mm
Core.cpp fix missed break in prev^2 commit 2024-10-15 04:11:30 +02:00
Core.h Change the text input box to use SDL textinput events 2024-10-15 04:07:22 +02:00
DarkLayer.cpp Changes to rendering logic, incl water surface flicker fix, plus other fixes. 2024-04-25 03:33:02 +02:00
DarkLayer.h Changes to rendering logic, incl water surface flicker fix, plus other fixes. 2024-04-25 03:33:02 +02:00
DataStructures.cpp Rewrite SceneEditor level generation and skinning, use light pink to designate areas that should not be skinned 2022-07-06 08:59:55 +02:00
DataStructures.h Reduce Game::fillGrid() complexity from O(n^2) to O(n) when trimming 2024-11-04 04:47:34 +01:00
DebugFont.cpp fix a warning 2024-09-22 03:23:51 +02:00
DebugFont.h Build fixes for Linux, some warnings and compatibility fixes for C++17 and up 2023-05-25 16:58:08 +02:00
DirWatcher.cpp make dmon optional at compile time, and a dedicated runtime option 2024-06-27 23:43:26 +02:00
DirWatcher.h integrate directory watching for mod gfx in dev mode, and reload texture files that change 2024-06-25 04:49:44 +02:00
Emitter.cpp tentative fix for particle flip not working properly in some cases 2023-10-20 03:53:29 +02:00
EngineEnums.h remove RenderObject::blendEnabled and cleanup the blend code a bit 2022-05-19 01:34:31 +02:00
Event.cpp warning fixes, signed vs unsigned mismatch, cleanups, c++98 compat 2024-04-16 01:43:36 +02:00
Event.h warning fixes, signed vs unsigned mismatch, cleanups, c++98 compat 2024-04-16 01:43:36 +02:00
FmodOpenALBridge.cpp warning fixes, signed vs unsigned mismatch, cleanups, c++98 compat 2024-04-16 01:43:36 +02:00
FmodOpenALBridge.h
FrameBuffer.cpp unbind framebuffer after init; fixes loading bar screen staying black 2024-05-07 00:44:04 +02:00
FrameBuffer.h Changes to rendering logic, incl water surface flicker fix, plus other fixes. 2024-04-25 03:33:02 +02:00
GameKeyNames.cpp Fix crash in static initializer (how did this ever work?) 2017-02-27 02:03:46 +01:00
GameKeyNames.h Turns out using IDs was a bad idea, reverting to KEY_* strings 2017-02-18 22:09:43 +01:00
GameKeys.h warning fixes, signed vs unsigned mismatch, cleanups, c++98 compat 2024-04-16 01:43:36 +02:00
GLLoad.cpp fix issues with glDrawBuffersARB() code path in prev commit 2024-04-26 03:28:07 +02:00
GLLoad.h remove zlib, libpng, glpng and related code; add some stb libs; rework texture loading 2022-03-31 21:03:40 +02:00
Gradient.cpp Preliminary support for vertial orientation: 2024-04-28 02:08:38 +02:00
Gradient.h Build fixes for Linux, some warnings and compatibility fixes for C++17 and up 2023-05-25 16:58:08 +02:00
Image.cpp save savefile previews as png. this finally kills .zga format, but it's kept for backwards compat 2024-11-09 03:46:52 +01:00
Image.h save savefile previews as png. this finally kills .zga format, but it's kept for backwards compat 2024-11-09 03:46:52 +01:00
Interpolators.cpp make both spline modes toggle-able ("assist" mode) 2024-07-07 05:36:21 +02:00
Interpolators.h make both spline modes toggle-able ("assist" mode) 2024-07-07 05:36:21 +02:00
Joystick.cpp warning fixes, signed vs unsigned mismatch, cleanups, c++98 compat 2024-04-16 01:43:36 +02:00
Joystick.h warning fixes, signed vs unsigned mismatch, cleanups, c++98 compat 2024-04-16 01:43:36 +02:00
Localization.cpp Major include refactor; changes to pretty much everything 2016-07-09 04:18:40 +02:00
Localization.h
MathFunctions.h Get rid of a lot of gcc warnings 2021-01-11 12:28:27 +01:00
MT.cpp warning fixes, signed vs unsigned mismatch, cleanups, c++98 compat 2024-04-16 01:43:36 +02:00
MT.h
OpenGLStubs.h Changes to rendering logic, incl water surface flicker fix, plus other fixes. 2024-04-25 03:33:02 +02:00
OSFunctions.cpp Support _mods/modname/mod-info.xml in addition to the old _mods/modname.xml 2024-11-04 22:38:29 +01:00
OSFunctions.h Support _mods/modname/mod-info.xml in addition to the old _mods/modname.xml 2024-11-04 22:38:29 +01:00
ParticleEffect.cpp first step towards making the render process const 2022-05-19 05:17:00 +02:00
ParticleManager.cpp remove iprof and BBGE_PROF (#74) 2022-03-17 20:50:42 +01:00
Particles.h tentative fix for particle flip not working properly in some cases 2023-10-20 03:53:29 +02:00
Precacher.cpp warning fixes, signed vs unsigned mismatch, cleanups, c++98 compat 2024-04-16 01:43:36 +02:00
Precacher.h Rework texture loading, part 1 2023-05-31 00:55:16 +02:00
Quad.cpp remove last traces of GL_BLEND/glBlendFunc() manipulation 2024-01-11 23:05:47 +01:00
Quad.h more fixes and improvements to anim editor; eliminate OutlineRect 2025-01-12 18:42:58 +01:00
QuadGrid.cpp Add RenderState to be passed through the scene graph 2022-05-20 01:04:19 +02:00
QuadGrid.h Build fixes for Linux, some warnings and compatibility fixes for C++17 and up 2023-05-25 16:58:08 +02:00
ReadXML.cpp remove zlib, libpng, glpng and related code; add some stb libs; rework texture loading 2022-03-31 21:03:40 +02:00
ReadXML.h Put tinyxml2 in subdir so that system header is respected 2017-02-10 10:01:24 +00:00
Rect.h Cleanup underwater checks, fix rectangular water bubbles 2023-06-23 15:05:05 +02:00
Refcounted.h Drop textures when no longer needed 2023-05-31 01:36:50 +02:00
RenderBase.cpp Major include refactor; changes to pretty much everything 2016-07-09 04:18:40 +02:00
RenderBase.h Changes to rendering logic, incl water surface flicker fix, plus other fixes. 2024-04-25 03:33:02 +02:00
RenderGrid.cpp remove GRID_DRAW_WORLDMAP and some associated code 2024-11-15 03:28:11 +01:00
RenderGrid.h remove GRID_DRAW_WORLDMAP and some associated code 2024-11-15 03:28:11 +01:00
RenderObject.cpp fix Lua func obj_fhTo() and variants, minor related cleanups in RenderObject 2025-01-13 04:57:35 +01:00
RenderObject.h fix broken scrolling in mod selector in vertical mode 2024-04-28 13:15:41 +02:00
RenderObject_inline.h don't update render water surface framebuffer when off screen 2024-04-28 04:04:30 +02:00
RenderObjectLayer.cpp remove RenderObjectLayer::update. now all layers are updated, always. 2024-05-12 18:01:43 +02:00
RenderState.cpp remove last traces of GL_BLEND/glBlendFunc() manipulation 2024-01-11 23:05:47 +01:00
RenderState.h remove last traces of GL_BLEND/glBlendFunc() manipulation 2024-01-11 23:05:47 +01:00
RoundedRect.cpp Add RenderState to be passed through the scene graph 2022-05-20 01:04:19 +02:00
RoundedRect.h Build fixes for Linux, some warnings and compatibility fixes for C++17 and up 2023-05-25 16:58:08 +02:00
ScreenTransition.cpp Changes to rendering logic, incl water surface flicker fix, plus other fixes. 2024-04-25 03:33:02 +02:00
ScreenTransition.h Build fixes for Linux, some warnings and compatibility fixes for C++17 and up 2023-05-25 16:58:08 +02:00
ScriptObject.cpp
ScriptObject.h More RenderObject slimming; reorder members, split out motion blur data + collideRadius, add new CollideQuad type 2022-05-18 19:44:42 +02:00
Shader.cpp Rework & cleanup CMake project files 2022-04-07 02:38:39 +02:00
Shader.h Change some stuff for butt-endian architectures 2021-01-11 12:28:27 +01:00
SimpleIStringStream.h fix derp in 4c52a147b0 2022-09-23 18:21:36 +02:00
SkeletalSprite.cpp Fixes to skel keyframe handling that would usually skip the first keyframe 2025-01-17 05:38:07 +01:00
SkeletalSprite.h Fixes to skel keyframe handling that would usually skip the first keyframe 2025-01-17 05:38:07 +01:00
Slider.cpp Remove commented-out code 2016-05-05 19:57:50 +02:00
Slider.h
SoundManager.cpp Rework & cleanup CMake project files 2022-04-07 02:38:39 +02:00
SoundManager.h Fix some warnings 2017-01-20 19:10:40 +01:00
SpawnParticleData.cpp remove RenderObject::blendEnabled and cleanup the blend code a bit 2022-05-19 01:34:31 +02:00
SplineGrid.cpp ocd fix 2024-07-08 01:54:13 +02:00
SplineGrid.h make both spline modes toggle-able ("assist" mode) 2024-07-07 05:36:21 +02:00
StateMachine.cpp Remove commented-out code 2016-05-05 19:57:50 +02:00
StateMachine.h Remove commented-out code 2016-05-05 19:57:50 +02:00
StateManager.cpp Build fixes for Linux, some warnings and compatibility fixes for C++17 and up 2023-05-25 16:58:08 +02:00
StateManager.h warning fixes, signed vs unsigned mismatch, cleanups, c++98 compat 2024-04-16 01:43:36 +02:00
StringBank.cpp very slightly more verbose loading 2023-06-01 12:59:07 +02:00
StringBank.h warning fixes, signed vs unsigned mismatch, cleanups, c++98 compat 2024-04-16 01:43:36 +02:00
Texture.cpp Worldmap overhaul, part 1 2024-11-15 03:12:14 +01:00
Texture.h Worldmap overhaul, part 1 2024-11-15 03:12:14 +01:00
TextureMgr.cpp integrate directory watching for mod gfx in dev mode, and reload texture files that change 2024-06-25 04:49:44 +02:00
TextureMgr.h integrate directory watching for mod gfx in dev mode, and reload texture files that change 2024-06-25 04:49:44 +02:00
Tile.cpp typo; fix tile wavy-effect flip (this effectively made numpad 5+6 effects the same) 2024-09-22 04:32:18 +02:00
Tile.h don't lose tile flags when changing solidness; update grid when flipping solid tile 2024-09-23 23:29:10 +02:00
TileRender.cpp make editor outline not so dull, closer to what it was 2024-05-06 04:27:28 +02:00
TileRender.h fixes to SceneEditor, some more things are working again 2023-10-20 00:35:25 +02:00
Tileset.cpp more editor fixes: 2023-10-25 00:46:12 +02:00
Tileset.h more editor fixes: 2023-10-25 00:46:12 +02:00
TTFFont.cpp remove last traces of GL_BLEND/glBlendFunc() manipulation 2024-01-11 23:05:47 +01:00
TTFFont.h Build fixes for Linux, some warnings and compatibility fixes for C++17 and up 2023-05-25 16:58:08 +02:00
Vector.cpp couple random warning fixes, no functional changes 2025-01-13 00:56:28 +01:00
Vector.h couple random warning fixes, no functional changes 2025-01-13 00:56:28 +01:00
VertexBuffer.cpp fix some oversights in vertex buffer binding cache 2024-01-11 22:59:26 +01:00
VertexBuffer.h warning fixes, signed vs unsigned mismatch, cleanups, c++98 compat 2024-04-16 01:43:36 +02:00
Window.cpp fixes to window size management, fullscreen transition, etc 2021-01-12 11:06:09 +01:00
Window.h fixes to window size management, fullscreen transition, etc 2021-01-12 11:06:09 +01:00
Window_SDL1.cpp fixes to window size management, fullscreen transition, etc 2021-01-12 11:06:09 +01:00
Window_SDL2.cpp Experimenting with GL debug context and GL_ARB_debug_output 2023-08-09 02:34:12 +02:00