Skip to content

Instantly share code, notes, and snippets.

@selftaught
Created July 22, 2015 19:23
Show Gist options
  • Save selftaught/1bcf6f3ca3470bf92ae3 to your computer and use it in GitHub Desktop.
Save selftaught/1bcf6f3ca3470bf92ae3 to your computer and use it in GitHub Desktop.
Room1 / Units loop
for(Room1* room = me->pAct->pRoom1; room != NULL; room = room->pNextRoom) {
for(UnitAny* unit = room->pUnitFirst; unit != NULL; unit = unit->pListNext) {
if(unit->dwType == 1) {
draw_cross(unit->pPath->xPos, unit->pPath->yPos);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment