|
@@ -46,6 +46,7 @@ void Map::reset( Text *zOptionen )
|
|
|
rGen = rGen->release();
|
|
|
next = 0;
|
|
|
score = 0;
|
|
|
+ scoreCheck = score * 11197;
|
|
|
map->leeren();
|
|
|
t = { -1, 0, 0, 0 };
|
|
|
Text *tmp = zOptionen->getTeilText( zOptionen->positionVon( '=' ) + 1, zOptionen->positionVon( ',' ) );
|
|
@@ -84,6 +85,7 @@ void Map::reset( Text *zOptionen )
|
|
|
if( br == breite && hö == höhe )
|
|
|
{
|
|
|
save->lese( (char*)&score, 4 );
|
|
|
+ scoreCheck = score * 11197;
|
|
|
save->lese( (char*)&t, sizeof( Tile ) );
|
|
|
for( int y = 0; y < höhe; y++ )
|
|
|
{
|
|
@@ -271,6 +273,7 @@ bool Map::tick( double tickVal )
|
|
|
map->remove( y );
|
|
|
map->add( line, 0 );
|
|
|
score++;
|
|
|
+ scoreCheck = score * 11197;
|
|
|
geschwindigkeit -= neuTempo;
|
|
|
}
|
|
|
}
|
|
@@ -286,6 +289,12 @@ bool Map::tick( double tickVal )
|
|
|
beendet |= ( ( x >= 0 && x < breite && y >= 0 && y < höhe ) ? map->z( y )->get( x ) : -1 ) != 0;
|
|
|
}
|
|
|
}
|
|
|
+ if( score * 11197 != scoreCheck )
|
|
|
+ {
|
|
|
+ score = 0;
|
|
|
+ scoreCheck = 0;
|
|
|
+ beendet = 1;
|
|
|
+ }
|
|
|
if( beendet && klient )
|
|
|
{
|
|
|
capture.close();
|