|
@@ -791,6 +791,7 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
Polygon2D pol = mdl->polygons->get( i );
|
|
Polygon2D pol = mdl->polygons->get( i );
|
|
|
|
+ zKlient->sendeEncrypted( (char*)&pol.transparent, 1 );
|
|
char nLen = (char)pol.name->getLength();
|
|
char nLen = (char)pol.name->getLength();
|
|
zKlient->sendeEncrypted( &nLen, 1 );
|
|
zKlient->sendeEncrypted( &nLen, 1 );
|
|
if( nLen )
|
|
if( nLen )
|
|
@@ -803,10 +804,10 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
zKlient->sendeEncrypted( (char*)&var, 4 );
|
|
zKlient->sendeEncrypted( (char*)&var, 4 );
|
|
var = pol.vertex->get( j ).y;
|
|
var = pol.vertex->get( j ).y;
|
|
zKlient->sendeEncrypted( (char*)&var, 4 );
|
|
zKlient->sendeEncrypted( (char*)&var, 4 );
|
|
- int ivar = ( pol.tKordinaten && pol.tKordinaten->hat( j ) ) ? pol.tKordinaten->get( j ).x : 0;
|
|
|
|
- zKlient->sendeEncrypted( (char*)&ivar, 4 );
|
|
|
|
- ivar = ( pol.tKordinaten && pol.tKordinaten->hat( j ) ) ? pol.tKordinaten->get( j ).y : 0;
|
|
|
|
- zKlient->sendeEncrypted( (char*)&ivar, 4 );
|
|
|
|
|
|
+ var = ( pol.tKordinaten && pol.tKordinaten->hat( j ) ) ? pol.tKordinaten->get( j ).x : 0;
|
|
|
|
+ zKlient->sendeEncrypted( (char*)&var, 4 );
|
|
|
|
+ var = ( pol.tKordinaten && pol.tKordinaten->hat( j ) ) ? pol.tKordinaten->get( j ).y : 0;
|
|
|
|
+ zKlient->sendeEncrypted( (char*)&var, 4 );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
mdl->release();
|
|
mdl->release();
|
|
@@ -944,7 +945,8 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
{
|
|
{
|
|
Polygon2D pol;
|
|
Polygon2D pol;
|
|
pol.vertex = new Array< Vertex >();
|
|
pol.vertex = new Array< Vertex >();
|
|
- pol.tKordinaten = new Array< Punkt >();
|
|
|
|
|
|
+ pol.tKordinaten = new Array< Vertex >();
|
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&pol.transparent, 1 );
|
|
char nLen = 0;
|
|
char nLen = 0;
|
|
zKlient->getNachrichtEncrypted( &nLen, 1 );
|
|
zKlient->getNachrichtEncrypted( &nLen, 1 );
|
|
char *txt = new char[ nLen + 1 ];
|
|
char *txt = new char[ nLen + 1 ];
|
|
@@ -958,7 +960,7 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
for( int j = 0; j < anz2; j++ )
|
|
for( int j = 0; j < anz2; j++ )
|
|
{
|
|
{
|
|
Vertex v;
|
|
Vertex v;
|
|
- Punkt p;
|
|
|
|
|
|
+ Vertex p;
|
|
zKlient->getNachrichtEncrypted( (char*)&v.x, 4 );
|
|
zKlient->getNachrichtEncrypted( (char*)&v.x, 4 );
|
|
zKlient->getNachrichtEncrypted( (char*)&v.y, 4 );
|
|
zKlient->getNachrichtEncrypted( (char*)&v.y, 4 );
|
|
zKlient->getNachrichtEncrypted( (char*)&p.x, 4 );
|
|
zKlient->getNachrichtEncrypted( (char*)&p.x, 4 );
|