Bugfix: don't do multiple loads simultaneously.
This commit is contained in:
@@ -93,6 +93,10 @@ void RenderingState::move(unsigned char key, bool sprint)
|
|||||||
|
|
||||||
void RenderingState::handleKey(unsigned char x)
|
void RenderingState::handleKey(unsigned char x)
|
||||||
{
|
{
|
||||||
|
if (isLoading()) {
|
||||||
|
// Don't handle user input while loading.
|
||||||
|
return;
|
||||||
|
}
|
||||||
switch (x) {
|
switch (x) {
|
||||||
case 'w':
|
case 'w':
|
||||||
case 'a':
|
case 'a':
|
||||||
@@ -365,6 +369,10 @@ void RenderingState::renderLayerName(const std::string &name) const
|
|||||||
|
|
||||||
void RenderingState::handleSpecialKey(int key)
|
void RenderingState::handleSpecialKey(int key)
|
||||||
{
|
{
|
||||||
|
if (isLoading()) {
|
||||||
|
// Don't handle user input while loading.
|
||||||
|
return;
|
||||||
|
}
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case GLUT_KEY_LEFT:
|
case GLUT_KEY_LEFT:
|
||||||
if (currentData == layerData.begin()) {
|
if (currentData == layerData.begin()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user