View Single Post
Violet CLM Violet CLM's Avatar

JCF Éminence Grise

Joined: Mar 2001

Posts: 10,991

Violet CLM has disabled reputation

Apr 9, 2015, 09:32 AM
Violet CLM is offline
Reply With Quote
  • ANIM::PLUS_AMMO is already loaded at the start of the level, so there's no need to load it again. Especially not every single render frame, which it looks like you're doing there. Naturally if you try to load 7 new jjANIMATION entries every frame, eventually you're going to go past 1500.
  • ANIM::AMMO and ANIM::PLUS_AMMO are different. That code would mess up every animation using any of the ANIM::AMMO animations—bullets, explosions, and so on.
  • Don't use p
  • Don't use 620, 455. That won't work at other resolutions. Use jjSubscreenWidth-20, jjSubscreenHeight-25
  • I think that'll work in that case, but in general it's good to include a jjIsTSF check when writing Lori-specific code, since 1.23 doesn't always understand Lori-related constants.
__________________