mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
all building in a paint-select row are now built
This commit is contained in:
@@ -40,7 +40,7 @@ namespace battleship{
|
||||
float hypothenuse = sqrt(width * width + length * length);
|
||||
int numStructsInRow = int(lenRow / hypothenuse);
|
||||
|
||||
while(gameObjectFrames.size() > numStructsInRow)
|
||||
while(gameObjectFrames.size() > numStructsInRow && gameObjectFrames.size() > 1)
|
||||
removeGameObjectFrame(gameObjectFrames.size() - 1);
|
||||
|
||||
if(gameObjectFrames.size() < numStructsInRow){
|
||||
|
||||
Reference in New Issue
Block a user