0 # pause
);
}
- write_data_file($fh, '', '', \%story);
+ write_data_file($fh, \%story);
}
if ($words ne '') {
if (split(/\r?\n/,$story{'content'}) >= (STORY_LENGTH-1)) {
# store finished game
$story_i_path = DATA_STORY_PATH.$story_id;
- write_data_file($story_i_path, '', '', \%story);
+ write_data_file($story_i_path, \%story);
# init new game
$new_story{'id' } = $story_id + 1;
$new_story{'letter' } = '';
);
}
# save new game
- write_data_file($fh, '', '', \%new_story);
+ write_data_file($fh, \%new_story);
}
else {
$message = 'To early to finish this wordgame.';
- write_data_file($fh, '', '', \%story);
+ write_data_file($fh, \%story);
}
}
else {
}
}
}
- write_data_file($fh, '', '', \%story);
+ write_data_file($fh, \%story);
}
}
}
$intf_mode,
$intf_pause
);
- write_data_file($fh, '', '', \%story);
+ write_data_file($fh, \%story);
}
@story_lines = split(/\r?\n/, $story{'content'});
if(@story_lines & 1) {