[ZScript]For/While loops freeze in DECORATE

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Major Cooke
Posts: 8209
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

[ZScript]For/While loops freeze in DECORATE

Post by Major Cooke »

Code: Select all

Actor A
{
	var int user_a;
	var int user_b;
	+NOINTERACTION
	RenderStyle Add
	States
	{
	Spawn:
		PLAY A -1 NoDelay
		{
			for (user_a = 0; user_a < 5; user_a++)
			{
				A_LogInt(user_a);
			}
		}
		Stop
	}
}
This will cause the game to freeze.
Last edited by Major Cooke on Thu Oct 27, 2016 8:32 am, edited 1 time in total.
User avatar
Major Cooke
Posts: 8209
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: [ZScript]For/While loops freezel in DECORATE

Post by Major Cooke »

Also:

Code: Select all

15>C:\Games\doom 2\zdoom\src\scripting\thingdef_data.cpp(455): warning C4018: '<': signed/unsigned mismatch
User avatar
Leonard2
Posts: 313
Joined: Tue Aug 14, 2012 6:10 pm

Re: [ZScript]For/While loops freeze in DECORATE

Post by Leonard2 »

Quick fix patch:
fix.txt
(992 Bytes) Downloaded 70 times
User avatar
Major Cooke
Posts: 8209
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: [ZScript]For/While loops freeze in DECORATE

Post by Major Cooke »

What about a PR?
User avatar
Leonard2
Posts: 313
Joined: Tue Aug 14, 2012 6:10 pm

Re: [ZScript]For/While loops freeze in DECORATE

Post by Leonard2 »

Just thought this would be faster for Graf? Since he's still working on ZScript as we speak.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49226
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [ZScript]For/While loops freeze in DECORATE

Post by Graf Zahl »

PR's are far more convenient than patch files.
Post Reply

Return to “Closed Bugs [GZDoom]”