Permalink
Browse files

STARTREK: Remove some gotos

  • Loading branch information...
Drenn1 authored and sev- committed Jul 24, 2018
1 parent eff8717 commit c2dd39a6c2f1f9356110dcfe0cb36607373b19e3
Showing with 214 additions and 189 deletions.
  1. +2 −2 engines/startrek/action.h
  2. +203 −186 engines/startrek/awaymission.cpp
  3. +1 −1 engines/startrek/space.cpp
  4. +8 −0 engines/startrek/startrek.h
@@ -60,8 +60,8 @@ struct Action {
byte b3;

// ACTION_USE, ACTION_GET, ACTION_LOOK, ACTION_TALK
byte activeObject() { return b1; }
byte passiveObject() { return b2; }
byte activeObject() const { return b1; }
byte passiveObject() const { return b2; }

bool operator==(const Action &a) const {
return type == a.type && b1 == a.b1 && b2 == a.b2 && b3 == a.b3;
Oops, something went wrong.

0 comments on commit c2dd39a

Please sign in to comment.