More cleanup
This commit is contained in:
parent
07b41ba31d
commit
c5acfc1bb5
1 changed files with 2 additions and 2 deletions
|
@ -270,7 +270,7 @@ local SCM CclMissile(SCM list)
|
||||||
value = gh_car(list);
|
value = gh_car(list);
|
||||||
list = gh_cdr(list);
|
list = gh_cdr(list);
|
||||||
str = gh_scm2newstr(value, NULL);
|
str = gh_scm2newstr(value, NULL);
|
||||||
missile->SourceUnit = UnitSlots[strtol (str + 1, 0, 16)];
|
missile->SourceUnit = UnitSlots[strtol(str + 1, 0, 16)];
|
||||||
free(str);
|
free(str);
|
||||||
++missile->SourceUnit->Refs;
|
++missile->SourceUnit->Refs;
|
||||||
} else if (gh_eq_p(value, gh_symbol2scm("target"))) {
|
} else if (gh_eq_p(value, gh_symbol2scm("target"))) {
|
||||||
|
@ -278,7 +278,7 @@ local SCM CclMissile(SCM list)
|
||||||
value = gh_car(list);
|
value = gh_car(list);
|
||||||
list = gh_cdr(list);
|
list = gh_cdr(list);
|
||||||
str = gh_scm2newstr(value, NULL);
|
str = gh_scm2newstr(value, NULL);
|
||||||
missile->TargetUnit = UnitSlots[strtol (str + 1, 0, 16)];
|
missile->TargetUnit = UnitSlots[strtol(str + 1, 0, 16)];
|
||||||
free(str);
|
free(str);
|
||||||
missile->TargetUnit->Refs++;
|
missile->TargetUnit->Refs++;
|
||||||
} else if (gh_eq_p(value, gh_symbol2scm("damage"))) {
|
} else if (gh_eq_p(value, gh_symbol2scm("damage"))) {
|
||||||
|
|
Loading…
Reference in a new issue