Commit c221727b authored by nanahira's avatar nanahira

lflist

parent 13a49b4d
Pipeline #35068 passed with stages
in 4 minutes and 42 seconds
...@@ -37,7 +37,7 @@ void DeckManager::LoadLFListSingle(const char* path) { ...@@ -37,7 +37,7 @@ void DeckManager::LoadLFListSingle(const char* path) {
int count = -1; int count = -1;
if (std::sscanf(linebuf, "%9u%*[ ]%9d", &code, &count) != 2) if (std::sscanf(linebuf, "%9u%*[ ]%9d", &code, &count) != 2)
continue; continue;
if (count < 0 || count > 2) if (count < 0 || count > 3)
continue; continue;
cur->content[code] = count; cur->content[code] = count;
cur->hash = cur->hash ^ ((code << 18) | (code >> 14)) ^ ((code << (27 + count)) | (code >> (5 - count))); cur->hash = cur->hash ^ ((code << 18) | (code >> 14)) ^ ((code << (27 + count)) | (code >> (5 - count)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment