changeset 340:36464fccd38f misc

Rename a variable.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 09 Aug 2016 23:05:16 +0300
parents 007859954b6c
children 5044666f6de2
files magestats.pl
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/magestats.pl	Tue Aug 09 19:35:44 2016 +0300
+++ b/magestats.pl	Tue Aug 09 23:05:16 2016 +0300
@@ -356,7 +356,7 @@
 if ($opt_noinput) {
   mlog(1, "Skipping input parsing.");
 } else {
-  my $gflag = 0;
+  my $ggrtf_flag = 0;
   mlog(1, "Using GgrTF format only!") if ($opt_ggrtf);
   mlog(2, "Matching regexp '".$match."'\n");
   mlog(1, "Parsing log from stdin ...");
@@ -372,12 +372,12 @@
         $$spells{$type}{"reinc"} = 1 if ($$spells{$type}{"essence"}{"increase"} > 0);
       }
     } elsif ($s =~ /^You watch with selfpride as your ($match) hits / || $s =~ /^You hit .+? with your ($match)\.$/) {
-      spell_update($1) if ($gflag == 0);
-      $gflag = 0;
+      spell_update($1) if ($ggrtf_flag == 0);
+      $ggrtf_flag = 0;
     } elsif ($s =~ /^Your .($match). hits / || $s =~ /^Your ($match) hits /) {
       if ($opt_ggrtf) {
         spell_update($1);
-        $gflag = 1;
+        $ggrtf_flag = 1;
       }
     } elsif ($s =~ /^Your knowledge in elemental powers helps you to save the reagent for further use\./) {
       if ($last_spell ne "") {