[ZScript]For/While loops freeze in DECORATE

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 a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: [ZScript]For/While loops freeze in DECORATE

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

by Graf Zahl » Thu Oct 27, 2016 11:12 am

PR's are far more convenient than patch files.

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

by Leonard2 » Thu Oct 27, 2016 10:25 am

Just thought this would be faster for Graf? Since he's still working on ZScript as we speak.

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

by Major Cooke » Thu Oct 27, 2016 10:21 am

What about a PR?

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

by Leonard2 » Thu Oct 27, 2016 10:19 am

Quick fix patch:
fix.txt
(992 Bytes) Downloaded 70 times

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

by Major Cooke » Thu Oct 27, 2016 8:32 am

Also:

Code: Select all

15>C:\Games\doom 2\zdoom\src\scripting\thingdef_data.cpp(455): warning C4018: '<': signed/unsigned mismatch

[ZScript]For/While loops freeze in DECORATE

by Major Cooke » Wed Oct 26, 2016 9:17 pm

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.

Top