Do inventory items not respect sprite offsets?

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
User avatar
Sir Robin
Posts: 537
Joined: Wed Dec 22, 2021 7:02 pm
Graphics Processor: Intel (Modern GZDoom)
Location: Medellin, Colombia

Do inventory items not respect sprite offsets?

Post by Sir Robin »

for example, use this sprite from GZDOOM:

Code: Select all

sprite TESTA0, 26, 13
{
	offset 13,7
	patch TLGLA0, 0, 0
}
that sprite is 26x13, and the 13,7 offset says it should be sunk into the floor when used by an actor
so I try it on both an actor and an inventory class:

Code: Select all

class TEST1 : actor {states {spawn: TEST A -1; stop;}}
class TEST2 : inventory {states {spawn: TEST A -1; stop;}}
And this is what I see:

Thats TEST1 on the left and TEST2 on the right
I loaded radius debug to confirm it's not a positioning issue, but I still see it without that or anything else loaded
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49182
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Do inventory items not respect sprite offsets?

Post by Graf Zahl »

That's the sprite offset adjustment at play. For pickups the rules are different because too many of them had bad offsets.
User avatar
Sir Robin
Posts: 537
Joined: Wed Dec 22, 2021 7:02 pm
Graphics Processor: Intel (Modern GZDoom)
Location: Medellin, Colombia

Re: Do inventory items not respect sprite offsets?

Post by Sir Robin »

Is ther any flag to turn that off? Either per-item or game-wide?

Return to “Bugs [GZDoom]”