Guest User

Untitled

a guest
Feb 11th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. if (unit->id == UnitId::scv){
  2. // u16 wPosition = megaTileArray[MTXM[unit->getX()/32 + unit->getY()/32*mapSize->width].megatileGroup]->index;
  3. //u16 wPosition = MTXM[unit->getTileX() + unit->getTileY()*mapSize->width].megatile;
  4. u16 xPosition = unit->getTileX();
  5. u16 yPosition = unit->getTileY();
  6. u16 ms = mapSize->width;
  7. u16 mathVar = 3 * 5;
  8. char sms[4];
  9. char sxPosition[4];
  10. char syPosition[4];
  11. char smathVar[4];
  12. sprintf(sxPosition, "%d", xPosition);
  13. scbw::printText(sxPosition, GameTextColor::ArmyGreen);
  14. sprintf(syPosition, "%d", yPosition);
  15. scbw::printText(syPosition, GameTextColor::Brown);
  16. sprintf(sms, "%d", ms);
  17. scbw::printText(sms, GameTextColor::DarkGrey);
  18. sprintf(smathVar, "%d", mathVar);
  19. scbw::printText(sms, GameTextColor::Navy);
  20.  
  21. // char sPosition[10];
  22. // sprintf(sPosition, "%d", *((u16*)0x0057F1DC));
  23. // scbw::printText(sPosition, GameTextColor::ArmyGreen);
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment