The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: z9999 on December 17, 2008, 03:51:11 PM

Title: Misc patch
Post by: z9999 on December 17, 2008, 03:51:11 PM
Misc patch for this topic.
http://forum.simutrans.com/index.php?topic=971.0

- priority of command line "-freeplay" and debug level and "-singleuser"
- way_leave_road
- priority of config/simuconf.tab



Very sorry. I'll recall this patch. Please don't use.
Thia patch causes a problem with debug mode


sim.exe caused an Access Violation at location 005a9c98 in module sim.exe Reading from location 0230484f.

Registers:
eax=022fb2d8 ebx=00000040 ecx=0023edd8 edx=00009577 esi=006d0074 edi=00730070
eip=005a9c98 esp=0023ee00 ebp=0023fa18 iopl=0         nv up ei pl nz na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000206

Call stack:
005A9C98  sim.exe:005A9C98  display_calc_proportional_string_len_width(char const*, int)  simgraph16.cc:2477
...
iUnicode = utf8_to_utf16((utf8 const*)text + iLen, &iLen);
if (iUnicode == 0) return width;
> w = fnt->screen_width[iUnicode];
if (w == 0) {
// default width for missing characters
...

005ADCE3  sim.exe:005ADCE3  WinMain  simsys_w16.cc:756
00401247  sim.exe:00401247
00401298  sim.exe:00401298
7C817067  kernel32.dll:7C817067  RegisterWaitForInputIdle



Title: Re: Misc patch
Post by: z9999 on December 18, 2008, 11:40:50 AM
Maybe, fixed.
Title: Re: Misc patch
Post by: z9999 on December 19, 2008, 06:37:40 AM
Updated for r2171.
Title: Re: Misc patch
Post by: prissi on December 19, 2008, 09:27:34 PM
Why changing way_leaving_road? Imho this is correct english to use gerundium here. Otherwise I applyed your changes.

Title: Re: Misc patch
Post by: z9999 on December 20, 2008, 06:34:29 AM
I don't know what are you talking about.
There is not a word "way_leaving_road" in my simuconf.tab but "way_leave_road".

So, if you have a plan to change simuconf.tab, it is Okay.
Title: Re: Misc patch
Post by: prissi on December 20, 2008, 10:27:30 PM
Ok, completely overlooked this simuconf.tab. Sorry, corrected.