[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[palito-dev] input.c TELL_SELECT_COMMANDER
From: |
Michael Devey |
Subject: |
[palito-dev] input.c TELL_SELECT_COMMANDER |
Date: |
Fri, 19 Sep 2003 22:01:54 +1000 |
User-agent: |
Mutt/1.5.4i |
I'm sure this just slipped through on a regexp replacement and you just
couldn't be fodased figuring out what went wrong so here it is.
#if 1
case TELL_SELECT_COMMANDER: {
Unit *commander = (Unit *) &player->unitArray[1];
ClientUnit *cu = &unitArray[commander->id];
menu_owner_changed = 1;
if(commander > 0) { // ---- or cu not sure?
cu->selected = 1;
unitTrack = NULL;
}
for(i = 2; i < MAX_UNITS; i++) {
Unit *u = (Unit *) &player->unitArray[i];
ClientUnit *cu = &unitArray[u->id];
if(u->id <= 0) continue;
cu->selected = 0;
}
break;
}
#endif
cvs ... :P
myke
- [palito-dev] input.c TELL_SELECT_COMMANDER,
Michael Devey <=