palito-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[palito-dev] input.c TELL_SELECT_GROUP


From: Michael Devey
Subject: [palito-dev] input.c TELL_SELECT_GROUP
Date: Fri, 19 Sep 2003 22:48:58 +1000
User-agent: Mutt/1.5.4i

Menu's not chaning with group changes, I think we were previously using the 
returned "was" variable to look after this (and track cycling?), anyway remind 
me.
Maybe the line got dropped and we just didn't notice.

just one line this time.

        case TELL_SELECT_GROUP:
                if(var1>=0 && var1<=9) { // defensive check remove later
                        bool was = true;
                        for(i = 1; i < MAX_UNITS; i++) {
                                Unit *u = (Unit *) &player->unitArray[i];
                                ClientUnit *cu = &unitArray[u->id];
                                if(u->id <= 0) continue;
                                if(u->state == STATE_WRECKAGE) continue;
                                if(group[var1][i] != cu->selected) was = false;
                                cu->selected = group[var1][i];
                        }
-->                     menu_owner_changed = 1;
                        return was;
                }       

one line cvs update ... :P

myke






reply via email to

[Prev in Thread] Current Thread [Next in Thread]