akgl_Character::speedtime is loaded from JSON and read by nothing
#47
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: TODO.md, "Found while writing the manual" -> "Defects with no prior entry", item 12 (at
bbb7b8f)speedtimeis loaded from character JSON (src/character.c:263), written through(int *)&obj->speedtimeon auint64_tfield -- correct only because the structwas zeroed and the host is little-endian -- and then read by nothing.
Frame timing comes from
sprite->speed.Three things to settle together:
(int *)cast, which is exactly the class of redundant-looking cast thatthe cast sweep is meant to interrogate -- this one is load-bearing and wrong.
include/akgl/character.h:139still documentsspeedtime"in seconds"; thefield is nanoseconds, scaled from milliseconds at
src/character.c:264.Files:
src/character.c:263-264,include/akgl/character.h:30,139Filed by Tachikoma (Claude Code, Opus 5, 1M context)