From 71189e7c0801d65421834655fc5d342d75251c50 Mon Sep 17 00:00:00 2001 From: Exynox Date: Sun, 27 Nov 2022 22:29:57 +0200 Subject: [PATCH] Removed register types --- game/src/matrix_card.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game/src/matrix_card.cpp b/game/src/matrix_card.cpp index 87c9065..4cba093 100644 --- a/game/src/matrix_card.cpp +++ b/game/src/matrix_card.cpp @@ -75,7 +75,7 @@ bool DecodeMatrix(const char* szsrc, const char* szpwd, char* lpdes, const unsig void MatrixCardRndCoordinate(unsigned int & rows, unsigned int & cols) { - for (register unsigned int i = 0; i < (ASLENGTH >> 1); i++) + for (unsigned int i = 0; i < (ASLENGTH >> 1); i++) { rows |= ((Random::get(0, MAX_ROWS - 1)) & 0x000000FF) << ((4 - i - 1) * 8); cols |= ((Random::get(0, MAX_COLS - 1)) & 0x000000FF) << ((4 - i - 1) * 8); @@ -98,7 +98,7 @@ bool ChkCoordinate(const unsigned int rows, const unsigned int cols, const char* unsigned short * pmatrix = (unsigned short *)matrix; unsigned short * panswer = (unsigned short *)answer; - for (register unsigned int i = 0; i < (ASLENGTH >> 1); i++) + for (unsigned int i = 0; i < (ASLENGTH >> 1); i++) { if (*(pmatrix + (ROW(rows, i) * MAX_COLS + COL(cols, i))) != *(panswer + i)) { @@ -143,7 +143,7 @@ void GetRightAnswer(const unsigned int rows, const unsigned int cols, const char memset(answer, 0, nsize); - for (register unsigned int i = 0; i < (ASLENGTH >> 1); i++) + for (unsigned int i = 0; i < (ASLENGTH >> 1); i++) { char sztemp[3] = { 0, 0, 0 }; memcpy(sztemp, (char*)(pmatrix + (ROW(rows, i) * MAX_COLS + COL(cols, i))), 2);