Announcement: Be excellent to each other.


Caravel Forum : DROD Boards : Bugs : Wubba stab on first turn
New Topic New Poll Post Reply
Poster Message
schep
Level: Smitemaster
Avatar
Rank Points: 865
Registered: 03-01-2005
IP: Logged
icon Wubba stab on first turn (+1)  
If a wubba is stabbed during the first turn (immediately after room entry), it does not make a sound, and characters waiting for the "Wubba stabbed" event do not detect it.

How about replacing (renaming) member CDummy::wTurnStabbed with UINT wNextStabTurn (initialized to 0), and in CDummy::OnStabbed():
if (this->pCurrentGame->wTurnNo >= this->wNextStabTurn)
  CueEvents.Add(CID_WubbaStabbed, this);
this->wNextStabTurn = this->pCurrentGame->wTurnNo + 2;

06-03-2005 at 07:51 PM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5252
Registered: 02-04-2003
IP: Logged
icon Re: Wubba stab on first turn (0)  
schep wrote:
If a wubba is stabbed during the first turn (immediately after room entry), it does not make a sound, and characters waiting for the "Wubba stabbed" event do not detect it.

How about replacing (renaming) member CDummy::wTurnStabbed with UINT wNextStabTurn (initialized to 0), and in CDummy::OnStabbed():
if (this->pCurrentGame->wTurnNo >= this->wNextStabTurn)
  CueEvents.Add(CID_WubbaStabbed, this);
this->wNextStabTurn = this->pCurrentGame->wTurnNo + 2;
Great idea! I'll fix this. :)

____________________________
Gandalf? Yes... That's what they used to call me. Gandalf the Grey. That was my name.
I am Gandalf the White. And I come back to you now at the turn of the tide.
06-05-2005 at 03:27 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Bugs : Wubba stab on first turn
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.9
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.