|
@@ -225,9 +225,12 @@ void Map::reset( Text *zOptionen )
|
|
save->lese( (char*)&y, 4 );
|
|
save->lese( (char*)&y, 4 );
|
|
save->lese( (char*)&xs, 4 );
|
|
save->lese( (char*)&xs, 4 );
|
|
save->lese( (char*)&ys, 4 );
|
|
save->lese( (char*)&ys, 4 );
|
|
- Schuss *newS = new Schuss( Vec2< float >( x, y ), Vec2< float >( xs, ys ) );
|
|
|
|
- schuss->add( newS );
|
|
|
|
- world->addObject( newS->getThis() );
|
|
|
|
|
|
+ if( schuss->getEintragAnzahl() > 100 )
|
|
|
|
+ {
|
|
|
|
+ Schuss *newS = new Schuss( Vec2< float >( x, y ), Vec2< float >( xs, ys ) );
|
|
|
|
+ schuss->add( newS );
|
|
|
|
+ world->addObject( newS->getThis() );
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
save->close();
|
|
save->close();
|
|
@@ -329,9 +332,12 @@ void Map::doTastaturEreignis( TastaturEreignis &te )
|
|
capture.schreibe( (char*)&gameTime, 8 );
|
|
capture.schreibe( (char*)&gameTime, 8 );
|
|
capture.schreibe( "\x10", 1 );
|
|
capture.schreibe( "\x10", 1 );
|
|
}
|
|
}
|
|
- Schuss *newS = ship->getSchuss();
|
|
|
|
- schuss->add( newS );
|
|
|
|
- world->addObject( newS->getThis() );
|
|
|
|
|
|
+ if( schuss->getEintragAnzahl() < 100 )
|
|
|
|
+ {
|
|
|
|
+ Schuss *newS = ship->getSchuss();
|
|
|
|
+ schuss->add( newS );
|
|
|
|
+ world->addObject( newS->getThis() );
|
|
|
|
+ }
|
|
}
|
|
}
|
|
cs.unlock();
|
|
cs.unlock();
|
|
}
|
|
}
|