1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

Made a few functions static or static inline.

This commit is contained in:
Frank Zago
2009-05-23 22:57:39 +00:00
parent 938aaac2ca
commit 6635cf4f23
18 changed files with 49 additions and 50 deletions

View File

@ -612,12 +612,12 @@ DLL_EXPORT void SpellCast::applyGs( CGameState *gs )
}
}
StackFeature featureGenerator(StackFeature::ECombatFeatures type, si16 subtype, si32 value, ui16 turnsRemain, si32 additionalInfo = 0)
static inline StackFeature featureGenerator(StackFeature::ECombatFeatures type, si16 subtype, si32 value, ui16 turnsRemain, si32 additionalInfo = 0)
{
return makeFeature(type, StackFeature::N_TURNS, subtype, value, StackFeature::SPELL_EFFECT, turnsRemain, additionalInfo);
}
std::vector<StackFeature> stackEffectToFeature(const CStack::StackEffect & sse)
static std::vector<StackFeature> stackEffectToFeature(const CStack::StackEffect & sse)
{
std::vector<StackFeature> sf;
switch(sse.id)