#0 76B39F40 msvcrt!memmove() (C:\Windows\syswow64\msvcrt.dll:??)
#1 004142E5 insert_points(host_list=0x28eb04, nhost=0x28faa4, injection=0x28d848, ninject=1, injection_point=372) (D:\Word War VI\wordwarvi\wordwarvi.c:8964)
#2 00414619 peak_roof(building=0x28eb04, npoints=0x28faa4, left=371, right=372) (D:\Word War VI\wordwarvi\wordwarvi.c:9029)
#3 00414B5F embellish_roof(building=0x28eb04, npoints=0x28faa4, left=371, right=372) (D:\Word War VI\wordwarvi\wordwarvi.c:9133)
#4 00414B03 indent_roof(building=0x28eb04, npoints=0x28faa4, left=369, right=370) (D:\Word War VI\wordwarvi\wordwarvi.c:9105)
#5 00414BCB embellish_roof(building=0x28eb04, npoints=0x28faa4, left=369, right=370) (D:\Word War VI\wordwarvi\wordwarvi.c:9140)
#6 0041489C turret_roof(building=0x28eb04, npoints=0x28faa4, left=367, right=368) (D:\Word War VI\wordwarvi\wordwarvi.c:9074)
#7 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=367, right=368) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#8 0041489C turret_roof(building=0x28eb04, npoints=0x28faa4, left=365, right=366) (D:\Word War VI\wordwarvi\wordwarvi.c:9074)
#9 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=365, right=366) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#10 004148D8 turret_roof(building=0x28eb04, npoints=0x28faa4, left=338, right=339) (D:\Word War VI\wordwarvi\wordwarvi.c:9076)
#11 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=338, right=339) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#12 0041489C turret_roof(building=0x28eb04, npoints=0x28faa4, left=336, right=337) (D:\Word War VI\wordwarvi\wordwarvi.c:9074)
#13 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=336, right=337) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#14 00414914 turret_roof(building=0x28eb04, npoints=0x28faa4, left=325, right=326) (D:\Word War VI\wordwarvi\wordwarvi.c:9077)
#15 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=325, right=326) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#16 0041489C turret_roof(building=0x28eb04, npoints=0x28faa4, left=323, right=324) (D:\Word War VI\wordwarvi\wordwarvi.c:9074)
#17 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=323, right=324) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#18 00414914 turret_roof(building=0x28eb04, npoints=0x28faa4, left=307, right=308) (D:\Word War VI\wordwarvi\wordwarvi.c:9077)
#19 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=307, right=308) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#20 0041489C turret_roof(building=0x28eb04, npoints=0x28faa4, left=305, right=306) (D:\Word War VI\wordwarvi\wordwarvi.c:9074)
#21 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=305, right=306) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#22 0041489C turret_roof(building=0x28eb04, npoints=0x28faa4, left=303, right=304) (D:\Word War VI\wordwarvi\wordwarvi.c:9074)
#23 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=303, right=304) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#24 00414B03 indent_roof(building=0x28eb04, npoints=0x28faa4, left=301, right=302) (D:\Word War VI\wordwarvi\wordwarvi.c:9105)
#25 00414BCB embellish_roof(building=0x28eb04, npoints=0x28faa4, left=301, right=302) (D:\Word War VI\wordwarvi\wordwarvi.c:9140)
#26 00414ADD indent_roof(building=0x28eb04, npoints=0x28faa4, left=297, right=298) (D:\Word War VI\wordwarvi\wordwarvi.c:9104)
#27 00414BCB embellish_roof(building=0x28eb04, npoints=0x28faa4, left=297, right=298) (D:\Word War VI\wordwarvi\wordwarvi.c:9140)
#28 0041489C turret_roof(building=0x28eb04, npoints=0x28faa4, left=295, right=296) (D:\Word War VI\wordwarvi\wordwarvi.c:9074)
#29 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=295, right=296) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
NaN {l Wrote}:It will compile under win7/mingw with a few ifdefs here and there (the code is using a few posix functions). The game will segfault at start though. Haven't had time to really look into it. Does the game depend on a specific random implementation? I had to replace it with rand/srand.
- {l Code}: {l Select All Code}
#0 76B39F40 msvcrt!memmove() (C:\Windows\syswow64\msvcrt.dll:??)
#1 004142E5 insert_points(host_list=0x28eb04, nhost=0x28faa4, injection=0x28d848, ninject=1, injection_point=372) (D:\Word War VI\wordwarvi\wordwarvi.c:8964)
#2 00414619 peak_roof(building=0x28eb04, npoints=0x28faa4, left=371, right=372) (D:\Word War VI\wordwarvi\wordwarvi.c:9029)
#3 00414B5F embellish_roof(building=0x28eb04, npoints=0x28faa4, left=371, right=372) (D:\Word War VI\wordwarvi\wordwarvi.c:9133)
#4 00414B03 indent_roof(building=0x28eb04, npoints=0x28faa4, left=369, right=370) (D:\Word War VI\wordwarvi\wordwarvi.c:9105)
#5 00414BCB embellish_roof(building=0x28eb04, npoints=0x28faa4, left=369, right=370) (D:\Word War VI\wordwarvi\wordwarvi.c:9140)
#6 0041489C turret_roof(building=0x28eb04, npoints=0x28faa4, left=367, right=368) (D:\Word War VI\wordwarvi\wordwarvi.c:9074)
#7 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=367, right=368) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#8 0041489C turret_roof(building=0x28eb04, npoints=0x28faa4, left=365, right=366) (D:\Word War VI\wordwarvi\wordwarvi.c:9074)
#9 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=365, right=366) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#10 004148D8 turret_roof(building=0x28eb04, npoints=0x28faa4, left=338, right=339) (D:\Word War VI\wordwarvi\wordwarvi.c:9076)
#11 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=338, right=339) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#12 0041489C turret_roof(building=0x28eb04, npoints=0x28faa4, left=336, right=337) (D:\Word War VI\wordwarvi\wordwarvi.c:9074)
#13 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=336, right=337) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#14 00414914 turret_roof(building=0x28eb04, npoints=0x28faa4, left=325, right=326) (D:\Word War VI\wordwarvi\wordwarvi.c:9077)
#15 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=325, right=326) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#16 0041489C turret_roof(building=0x28eb04, npoints=0x28faa4, left=323, right=324) (D:\Word War VI\wordwarvi\wordwarvi.c:9074)
#17 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=323, right=324) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#18 00414914 turret_roof(building=0x28eb04, npoints=0x28faa4, left=307, right=308) (D:\Word War VI\wordwarvi\wordwarvi.c:9077)
#19 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=307, right=308) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#20 0041489C turret_roof(building=0x28eb04, npoints=0x28faa4, left=305, right=306) (D:\Word War VI\wordwarvi\wordwarvi.c:9074)
#21 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=305, right=306) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#22 0041489C turret_roof(building=0x28eb04, npoints=0x28faa4, left=303, right=304) (D:\Word War VI\wordwarvi\wordwarvi.c:9074)
#23 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=303, right=304) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
#24 00414B03 indent_roof(building=0x28eb04, npoints=0x28faa4, left=301, right=302) (D:\Word War VI\wordwarvi\wordwarvi.c:9105)
#25 00414BCB embellish_roof(building=0x28eb04, npoints=0x28faa4, left=301, right=302) (D:\Word War VI\wordwarvi\wordwarvi.c:9140)
#26 00414ADD indent_roof(building=0x28eb04, npoints=0x28faa4, left=297, right=298) (D:\Word War VI\wordwarvi\wordwarvi.c:9104)
#27 00414BCB embellish_roof(building=0x28eb04, npoints=0x28faa4, left=297, right=298) (D:\Word War VI\wordwarvi\wordwarvi.c:9140)
#28 0041489C turret_roof(building=0x28eb04, npoints=0x28faa4, left=295, right=296) (D:\Word War VI\wordwarvi\wordwarvi.c:9074)
#29 00414B84 embellish_roof(building=0x28eb04, npoints=0x28faa4, left=295, right=296) (D:\Word War VI\wordwarvi\wordwarvi.c:9135)
11359 add_buildings(&terrain);/* Some FreeBSD users report that */
11360 /*add_buildings() causes crashes. */
11361 /* Commenting this out on FreeBSD */
11362 /* may help, but, no buildings. */
11363 /* I've looked at the code, but */
11364 /* don't see anything wrong with it. */
9120 static void embellish_roof(struct my_point_t *building, int *npoints, int left, int right)
9121 {
9122 int r = randomn(10);
9123
9124 switch (r) {
9125 case 1: peak_roof(building, npoints, left, right);
9126 break;
9127 case 2:turret_roof(building, npoints, left, right);
9128 break;
2645 /* get a random number between 0 and n-1... fast and loose algorithm. */
2646 static inline int randomn(int n)
2647 {
2648 /* return (int) (((random() + 0.0) / (RAND_MAX + 0.0)) * (n + 0.0) ); */
2649 /* floating point divide? No. */
2650 return ((random() & 0x0000ffff) * n) >> 16;
2651 }
static inline int randomn(int n) { return random() % n; }
smcameron {l Wrote}:BTW, were any makefile changes needed? What's the build process like?
Some instructions about how to get the various libraries and whatnot needed to build from source on windows might be a good thing to add to the README. (but I will take what I can get, so if that's asking too much, don't worry about it.)
-- steve
Users browsing this forum: No registered users and 1 guest