1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-27 00:41: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

@ -153,13 +153,13 @@ struct AddDefForButton
currentButton->additionalDefs.push_back(str);
}
};
void addGRes()
static void addGRes()
{
if(current)
conf.guiOptions[curRes] = *current; //we'll use by default settings from previous resolution
current = &conf.guiOptions[curRes];
}
void setGem(int x, int val)
static void setGem(int x, int val)
{
if(x)
current->ac.gemX[gnb] = val;
@ -361,4 +361,4 @@ void config::CConfigHandler::init()
GUIOptions * config::CConfigHandler::go()
{
return &guiOptions[std::pair<int,int>(cc.resx,cc.resy)];
}
}