]> bicyclesonthemoon.info Git - ott/bsta/blobdiff - 2words.1.pl
Done comment system
[ott/bsta] / 2words.1.pl
index 6f7030643e33c5412d43123df63dff4a93a51852..9a151035814a88fd1da4b85ada97e8427101d428 100644 (file)
@@ -191,7 +191,7 @@ if (open_encoded($fh, "+<:encoding(UTF-8)", DATA_STORY_PATH())) {
                                0 # pause
                        );
                }
-               write_data_file($fh, '', '', \%story);
+               write_data_file($fh, \%story);
        }
        
        if ($words ne '') {
@@ -226,7 +226,7 @@ if (open_encoded($fh, "+<:encoding(UTF-8)", DATA_STORY_PATH())) {
                                        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' } = '';
@@ -250,11 +250,11 @@ if (open_encoded($fh, "+<:encoding(UTF-8)", DATA_STORY_PATH())) {
                                                        );
                                                }
                                                # 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 {
@@ -344,7 +344,7 @@ if (open_encoded($fh, "+<:encoding(UTF-8)", DATA_STORY_PATH())) {
                                                        }
                                                }
                                        }
-                                       write_data_file($fh, '', '', \%story);
+                                       write_data_file($fh, \%story);
                                }
                        }
                }
@@ -368,7 +368,7 @@ if (open_encoded($fh, "+<:encoding(UTF-8)", DATA_STORY_PATH())) {
                        $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) {