Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

qtscript: Add DROID_ANY enum, for use with countDroid().

  • Loading branch information...
commit b782d21b5ed1d9b293e59317b99e09ac0786aa09 1 parent f8c38a6
@perim perim authored
Showing with 2 additions and 1 deletion.
  1. +1 −1  src/droiddef.h
  2. +1 −0  src/qtscriptfuncs.cpp
View
2  src/droiddef.h
@@ -76,7 +76,7 @@ enum DROID_TYPE
DROID_CYBORG_REPAIR, ///< cyborg repair droid - new for update 28/5/99
DROID_CYBORG_SUPER, ///< cyborg repair droid - new for update 7/6/99
DROID_SUPERTRANSPORTER, ///< SuperTransport (MP)
- DROID_ANY, ///< Any droid. Only used as a parameter for intGotoNextDroidType(DROID_TYPE).
+ DROID_ANY, ///< Any droid
};
struct COMPONENT
View
1  src/qtscriptfuncs.cpp
@@ -2287,6 +2287,7 @@ bool registerFunctions(QScriptEngine *engine)
engine->globalObject().setProperty("DROID_TRANSPORTER", DROID_TRANSPORTER, QScriptValue::ReadOnly | QScriptValue::Undeletable);
engine->globalObject().setProperty("DROID_SUPERTRANSPORTER", DROID_SUPERTRANSPORTER, QScriptValue::ReadOnly | QScriptValue::Undeletable);
engine->globalObject().setProperty("DROID_COMMAND", DROID_COMMAND, QScriptValue::ReadOnly | QScriptValue::Undeletable);
+ engine->globalObject().setProperty("DROID_ANY", DROID_ANY, QScriptValue::ReadOnly | QScriptValue::Undeletable);
engine->globalObject().setProperty("HQ", REF_HQ, QScriptValue::ReadOnly | QScriptValue::Undeletable);
engine->globalObject().setProperty("FACTORY", REF_FACTORY, QScriptValue::ReadOnly | QScriptValue::Undeletable);
engine->globalObject().setProperty("POWER_GEN", REF_POWER_GEN, QScriptValue::ReadOnly | QScriptValue::Undeletable);
Please sign in to comment.
Something went wrong with that request. Please try again.