Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upSo, um, I got a vehicle crash while I was crashing vehicles... #9051
Comments
This comment has been minimized.
This comment has been minimized.
|
AFAIK nothing but global overmap coordinates uses negative numbers, so I'm |
narc0tiq
added
<Bug>
<Crash / Freeze>
labels
Sep 16, 2014
This comment has been minimized.
This comment has been minimized.
|
All map functions should probably check the coordinates with Otherwise the caller of the those map-functions needs to check for out-of-bounds and that is very impractical. |
This comment has been minimized.
This comment has been minimized.
|
don't know if its related, but when ever i examine the part of the vehicle that contains the fuel tank the game crashes |
This comment has been minimized.
This comment has been minimized.
|
Yes, negative coordinates are bad. I've had plenty of those while debugging map3d. It seems to me the monster had a target location that got shifted out of the reality bubble. There doesn't seem to be any check for that. void monster::shift(int sx, int sy)
{
_posx -= sx * SEEX;
_posy -= sy * SEEY;
for (auto &i : plans) {
i.x -= sx * SEEX;
i.y -= sy * SEEY;
}
}Which is weird, I mean in theory you should have squirrels with target destinations outside the reality bubble all the time? I might've missed something. |
This comment has been minimized.
This comment has been minimized.
IFailAtGaming
commented
Sep 18, 2014
|
Heema, it's probably unrelated, but i've got a similar problem with any kind of tank if it reaches a certain level( water was 81% and fuel was 90 something but it only seems to happen on my RV |
This comment has been minimized.
This comment has been minimized.
Yeah, that'll be the bug I fixed in #9081 that got into Jenkins build 2113. Try updating. Also, definitely not related to this. |
This comment has been minimized.
This comment has been minimized.
|
Similar crash happened here. Git master of couple minutes ago, 64-bit, GCC 4.8.3. Here's the frame and full backtrace:
|
narc0tiq
added a commit
to narc0tiq/Cataclysm-DDA
that referenced
this issue
Sep 19, 2014
narc0tiq
referenced this issue
Sep 19, 2014
Merged
Make map::is_bashable check for inbounds() first. #9124
KA101
closed this
in
#9124
Sep 20, 2014
This comment has been minimized.
This comment has been minimized.
|
Uhm this bug isn't really fixed, it's more like the warning was silenced. |
This comment has been minimized.
This comment has been minimized.
|
No, checking That said, there may be other |
narc0tiq commentedSep 16, 2014
I'm confused. What's the real intended usage here, 'cause accessing negative array indices is clearly a bad idea?