Alvaro Cassinelli
/
skinGames_II
save loops
Diff: main.cpp
- Revision:
- 1:3be7b7d050f4
- Parent:
- 0:df6fdd9b99f0
diff -r df6fdd9b99f0 -r 3be7b7d050f4 main.cpp --- a/main.cpp Tue Dec 02 04:39:15 2014 +0000 +++ b/main.cpp Tue Dec 02 08:29:59 2014 +0000 @@ -796,6 +796,15 @@ } } + else if (!strcmp( address[0], "sendAnchorPos" ) ) { + int value=data[0]; + if (value!=-1) { // otherwise do nothing, this is a reception error (there was no data) + for (int i=0; i< blobconf.numBlobs; i++) { + blobconf.blobArray[i]->sendingAnchorPosition=(value>0); + } + } + } + else if (!strcmp( address[0], "sendRegions" ) ) { int value=data[0]; if (value!=-1) { // otherwise do nothing, this is a reception error (there was no data)