summaryrefslogtreecommitdiff
path: root/src/spell-convert/ast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/spell-convert/ast.cpp')
-rw-r--r--src/spell-convert/ast.cpp24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/spell-convert/ast.cpp b/src/spell-convert/ast.cpp
index eb66752..e9ec19c 100644
--- a/src/spell-convert/ast.cpp
+++ b/src/spell-convert/ast.cpp
@@ -1,7 +1,27 @@
#include "ast.hpp"
+// ast.cpp - Hacky converter between magic formats.
+//
+// Copyright © 2014 Ben Longbons <b.r.longbons@gmail.com>
+//
+// This file is part of The Mana World (Athena server)
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "../io/cxxstdio.hpp"
+#include "../poison.hpp"
+
void Constant::dump()
{
PRINTF("(CONST %s\n", name);
@@ -113,7 +133,7 @@ void ExplicitCallEffect::print()
void SleepEffect::print()
{
PRINTF("(WAIT ");
- time->show();
+ time_->show();
PRINTF(")");
}
void CallExpr::print()
@@ -255,6 +275,6 @@ void SpellGuardMana::declare()
void SpellGuardCasttime::declare()
{
PRINTF("(CASTTIME ");
- time->show();
+ time_->show();
PRINTF(")");
}