View previous topic :: View next topic |
Author |
Message |
rhinoduck Potatoes
Joined: 22 Oct 2012
|
Posted: Mon Oct 28, 2013 11:21 am Post subject: [ACS] Log() overwrites new messages with old |
|
|
When passing a return value as a parameter to Log() from a function that uses Log() itself, Log() displays the last message from within the function again instead of the new one.
Code: | function int logTest(void) {
Log(s:"this gets doubled: ", d:3);
return 1;
}
script 1 (void) {
Log(s:"this won't get printed: ", d:logTest());
} |
The above example is included in this test wad. Only Log() is used here, although I expect other printing functions to share the issue. The example works correctly in Zdoom 2.7.1.
Last edited by rhinoduck on Sun Jan 28, 2018 11:51 pm; edited 1 time in total |
|
Back to top |
|
|
Maikl_Russia has entered the game!
Joined: 18 Jul 2005 Location: RU
|
Posted: Fri Apr 01, 2016 7:03 am Post subject: Re: [ACS] Log() overwrites new messages with old |
|
|
rhinoduck wrote: | ...
I expect other printing functions to share the issue. |
Yes, HudMessage function has the same bug. |
|
Back to top |
|
|
Kilgore Air Cavalry
Joined: 17 Jun 2003 Location: Up the river
|
Posted: Mon Jan 29, 2018 4:44 pm Post subject: |
|
|
Fixed with a patch provided by rhinoduck. Thanks man. |
|
Back to top |
|
|
|