This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hans Ronne wrote:
I have just checked in a new fix to this bug. The problem with the old fix was that it also prevented units from using roads to move through terrain that would otherwise be impassable. This time, I have addressed the core of the problem, which is the fact that the tank failed to vanish when it jumped into the sea. It turned out that the code for vanishing or wrecking units in the wrong terrain did not work for moves within the same cell. This has now been fixed. Accordingly, I have removed the check for terrain_always_impassable in check_move_action. This means that stupid moves like jumping overboard at sea or sending spaceships into black holes are permitted again, both to human sides and to the AI. Which, I guess, is as it should be.
My memory is faded here, but I think at one point it seemed like a good idea to disallow stupid moves at the kernel level, otherwise you have to add something in each UI and in each AI to prevent unfortunate accidents. Purely for personal safety :-) - didn't want to deal with players' homicidal mania when they lost their invasion forces because of mistaken mouse twitches! Stan
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |