1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-24 06:03:23 +00:00

Enter now correctly accepts in the number dialog

This commit is contained in:
Zeno Rogue 2018-02-03 20:04:33 +01:00
parent d3d6eec424
commit 76214e768e

View File

@ -428,7 +428,7 @@ namespace dialog {
unsigned char* pts = (unsigned char*) &color;
pts[uni - 'A'] = x;
}
else if(uni == ' ' || uni == '\n') {
else if(uni == ' ' || uni == '\n' || uni == '\r') {
bool inHistory = false;
for(int i=0; i<10; i++) if(colorhistory[i] == (unsigned) color)
inHistory = true;