Fix minor mistake that lead to extra ships being rendered
This commit is contained in:
parent
161f877834
commit
5fea20ff9d
|
@ -333,7 +333,7 @@ int main(int argc, char ** argv)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (state->playerStates[playerNumber].inPlay == true)
|
if (state->playerStates[index].inPlay == true)
|
||||||
{
|
{
|
||||||
shipRectangles[index].x = ((long)(state->playerStates[index].position.xComponent -
|
shipRectangles[index].x = ((long)(state->playerStates[index].position.xComponent -
|
||||||
state->playerStates[playerNumber].position.xComponent) -
|
state->playerStates[playerNumber].position.xComponent) -
|
||||||
|
|
Loading…
Reference in New Issue