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:
@ -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)];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user