Fixed two major bugs in Werewolf that messed up game play.

This commit is contained in:
Elijah Perrault committed 2011-04-09 19:33:01 -06:00
1 parent 07d9c19b53
commit 1e45c53d38
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log
3.0 Indev
===============================================================================
* Fixed two major bugs in Werewolf that messed up game play.
* Fixed several bugs and changed around JOIN/START/BEGIN in Werewolf.
* Fixed parsing of host masks with / in them. (if it was broken)
* Werewolf: Fixed a leave before game begin bug.
+2 -1
View File
@@ -95,7 +95,7 @@ sub cmd_wolf {
# WOLF JOIN
# Check if a game is running.
if (!$PGAME) {
if (!$PGAME and !$GAME) {
# Check if this is the game channel.
if (conf_get('werewolf:chan')) {
if ($src->{svr}.'/'.$src->{chan} ne (conf_get('werewolf:chan'))[0][0]) {
@@ -1327,6 +1327,7 @@ sub _gameover {
# Clear all variables.
if ($PHASE) { if ($PHASE eq 'n') { timer_del('werewolf.goto_daytime') } }
if ($PGAME) { timer_del('werewolf.join_wait') }
$GAME = $PGAME = $GAMECHAN = $GAMETIME = $WAIT = $PHASE = $SEEN = $VISIT = $GUARD = $LVOTEN = $SHOT = $DETECTED = 0;
%PLAYERS = ();
%NICKS = ();