mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add app.reset_content 'non_reset_packs' optional argument
This commit is contained in:
parent
50d520e747
commit
0e6fb878bf
9 changed files with 51 additions and 14 deletions
|
|
@ -382,11 +382,11 @@ public:
|
|||
}
|
||||
|
||||
void setShouldRefresh() override {
|
||||
shouldRefresh = true;
|
||||
shouldRefresh = 2;
|
||||
}
|
||||
|
||||
bool checkShouldRefresh() override {
|
||||
if (shouldRefresh) {
|
||||
if ((--shouldRefresh) == 0) {
|
||||
shouldRefresh = false;
|
||||
return true;
|
||||
}
|
||||
|
|
@ -573,7 +573,7 @@ private:
|
|||
double prevSwap = 0.0;
|
||||
int posX = 0;
|
||||
int posY = 0;
|
||||
bool shouldRefresh = true;
|
||||
int shouldRefresh = 1;
|
||||
};
|
||||
static_assert(!std::is_abstract<GLFWWindow>());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue