ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[ACS] Log() overwrites new messages with old

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Fixed Bugs
View previous topic :: View next topic  
Author Message
rhinoduck
Potatoes


Joined: 22 Oct 2012

PostPosted: Mon Oct 28, 2013 11:21 am    Post subject: [ACS] Log() overwrites new messages with old Reply with quote

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
View user's profile Send private message
Maikl_Russia
has entered the game!


Joined: 18 Jul 2005
Location: RU

PostPosted: Fri Apr 01, 2016 7:03 am    Post subject: Re: [ACS] Log() overwrites new messages with old Reply with quote

rhinoduck wrote:
...
I expect other printing functions to share the issue.

Yes, HudMessage function has the same bug.
Back to top
View user's profile Send private message
Kilgore
Air Cavalry


Joined: 17 Jun 2003
Location: Up the river

PostPosted: Mon Jan 29, 2018 4:44 pm    Post subject: Reply with quote

Fixed with a patch provided by rhinoduck. Thanks man.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Fixed Bugs All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group