----------------------------------------------- RECEIVE TEXT -----------------------------------------------
| 371 | |
| 372 | //----------------------------------------------- RECEIVE TEXT ----------------------------------------------- |
| 373 | BOOL __stdcall _SNetReceiveMessage(int *senderplayerid, char **data, int *databytes) |
| 374 | { |
| 375 | auto SNetReceiveMessageProc = _SNetReceiveMessageOld ? _SNetReceiveMessageOld : &SNetReceiveMessage; |
| 376 | BOOL rval = SNetReceiveMessageProc(senderplayerid, data, databytes); |
| 377 | |
| 378 | if ( rval && *databytes > 2 && (*data)[0] == 0) |
| 379 | BWAPI::BroodwarImpl.onReceiveText(*senderplayerid, std::string((char*)&(*data)[2]) ); |
| 380 | |
| 381 | return rval; |
| 382 | } |
| 383 | |
| 384 | //----------------------------------------------- DRAW HOOK -------------------------------------------------- |
| 385 | void __stdcall DrawHook(BW::Bitmap *pSurface, BW::bounds *pBounds) |
nothing calls this directly
no test coverage detected