Liste des Groupes | Revenir à cl c |
fir pisze:after considering that bug it seem that the game_time should always be increased after this dispatch to disallow making this dispatch twice covoid ProcessMicroturnsUntilHuman()so the loop code in simplification look like
{
if( game_time < character[HUM].action_end)
{
while(game_time < character[HUM].action_end)
{
DispatchActions();
game_time++;
}
if(game_time == character[HUM].action_end) //**
DispatchActions();
}
>
}
if( game_time < 300) //this is only to not alllow re-enter the loop if you reach turn 300
{
while(game_time < 300) //game time starts form 0
{
DispatchActions();
game_time++;
}
DispatchActions(); //this runs for turn 300
}
im not sure if there is no bug here as when i press space and 300
turns into 600 then the dispatch on turn 300 would be executed
second time (?) (though in present state of things it wouldnt spoil
probably the things as dispatch if called on turn 300 starters would change the values and they woil not fiore twice
but it all show trubles in what should be 'simple' loop
Les messages affichés proviennent d'usenet.