What is the problem in the code?

There is a project https://github.com/Beginerok/Tropic-Island/tree/ma... there is the whole code, post only the part maybe the rest of the code has a logical error
for (int i = 0; i<countdrums; i++)
 glRotatef(rotate[i], 1, 0, 0);
 for (int j = 0; j<counttextureondrums; j++)
 glBindTexture(GL_TEXTURE_2D, image->IndexTexture[FindTexture(vectordrum[GetMassive(i*j + j)/*randommassive[i*j+j]*/])]);
 EnableTexture(i, j);

The problem is that renders the same machine,and has different
March 19th 20 at 09:12
1 answer
March 19th 20 at 09:14
As far as I understand, you have GetRandomMassive() array randommassive[] is populated with the values of min_ and max_-5, although it was implicit that there will be some random numbers.

Find more questions by tags C++