This can't be right, can it?

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49228
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

[source code] This can't be right, can it?

Post by Graf Zahl »

Code: Select all

	if (weapon == NULL || weapon->flags & WIF_DONTBOB)
(found in P_BobWeapon)

Unless you really want to use MF_SHOOTABLE to indicate non-bobbing weapons...
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49228
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Same problem in P_CheckWeaponFire:

Code: Select all

		if (!(player->oldbuttons & BT_ATTACK) || !(weapon->flags & WIF_NOAUTOFIRE))
User avatar
Cutmanmike
Posts: 11352
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: [source code] This can't be right, can it?

Post by Cutmanmike »

Graf Zahl wrote:

Code: Select all

	if (weapon == NULL || weapon->flags & WIF_DONTBOB)
(found in P_BobWeapon)

Unless you really want to use MF_SHOOTABLE to indicate non-bobbing weapons...
What would this effect?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49228
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [source code] This can't be right, can it?

Post by Graf Zahl »

It should read

Code: Select all

	if (weapon == NULL || weapon->WeaponFlags & WIF_DONTBOB)


Randy just used the wrong flags variable to check the flag. The effect would be that the DONTBOB flag doesn't work and that the SHOOTABLE flag has an unintended side effect if used on a weapon.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49228
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

One more in the same file:

This line in P_FireWeapon should check for the bAltFire flag, otherwise it won't work correctly once alternative fire is actually implemented.

Code: Select all

	if (weapon == NULL || !weapon->CheckAmmo (AWeapon::PrimaryFire, true))
Scuba Steve
Posts: 1060
Joined: Sat Mar 27, 2004 8:56 pm

Post by Scuba Steve »

That's how sweet I am, I found this error out all by myself.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49228
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

fixed
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

It wasn't in news a minute ago....
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49228
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

What's in News?
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

At that time, when I had looked at the new posts, this and another bug report was in the news forum, according to the search
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49228
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

I just noticed that I accidentally moved a handful of reports twice - and they ended up in News. Too bad I can't move them back where they belong... :?
User avatar
Siggi
Posts: 3288
Joined: Sun Oct 03, 2004 8:57 am
Preferred Pronouns: They/Them
Location: South Africa

Post by Siggi »

Image
Hehehe, oops :wink:
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

There, now you can only move topics to forums you can moderate.
Post Reply

Return to “Closed Bugs [GZDoom]”