[Top][All Lists]

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

Re: [glob2-devel] Re: what was the cause of repair bug?

From: Bradley Arsenault
Subject: Re: [glob2-devel] Re: what was the cause of repair bug?
Date: Mon, 16 Apr 2007 20:50:47 -0400

On 4/16/07, Joe Wells <address@hidden> wrote:
"Bradley Arsenault" <address@hidden> writes:

> The bug was caused by a logic error. If you notice how the MapEditor
> document in the wiki describes building levels (with construction
> sites on even numbers starting at 0), my code would take the previous
> level on a level 1 construction site, which is -1, when instead it
> should be taking the current level.

I am confused.  The problem was happening when repairing normal
buildings (with level number 1?).  How did they get to be considered
construction sites (with level number 0?)?  Your description makes it
sound like there is another bug.


Level 1 building construction site: 0
Level 1 building completed: 1
Level 2 building construction site: 2
Level 2 building completed: 3
Level 3 building construction site: 4
Level 3 building completed: 5

When a completeted level 1 building goes into construction, its
"technical level" goes from 1 to 0. If we take prev level when its at
0, this is -1, which means invalid.

Really. I'm not lieing. Bradley Arsenault.

reply via email to

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