ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CheckWeapon crash

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Fixed Bugs
View previous topic :: View next topic  
Author Message
Body-Guard
Unstoppable!


Joined: 08 Jan 2006
Location: Hungary

PostPosted: Wed Jul 16, 2014 9:23 pm    Post subject: CheckWeapon crash Reply with quote

EDIT

This bug is a bit trickier than I first thought. The deal is this:

If CheckWeapon is invoked in the same tic when the player has no weapon (not even fist or pistol) the game crashes. It does not matter which weapon you check for.

CheckWeapon works only if at least one weapon is in the player's inventory at the moment of invocation.

ZDoom 2 seems to have something named "None" for this purpose. At least I get that output with GetWeapon() acs function when the pistol and fist has been taken. CheckWeapon does not recognize "None" as an equipped weapon though.


This bug was kinda hard to track down, I wondered what causes random crashes in my upcoming ACS mod. Would be nice to see it fixed.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Kilgore
Air Cavalry


Joined: 17 Jun 2003
Location: Up the river

PostPosted: Mon Aug 18, 2014 1:33 am    Post subject: Reply with quote

Fixed; it will appear in the next client release.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Fixed Bugs All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group