The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
Development Assistance
/
Wifi broken with higher max_temp
«
1
»
Wifi broken with higher max_temp
firefly431
5th Oct 2011
Member
0
Permalink
I changed the max_temp to something around 99999999, and my wifi broke. The portal is working, but wifi is broken.
http://pastebin.com/436vSTjc
MasterMind555
5th Oct 2011
Member
0
Permalink
@firefly431
(View Post)
I don't think the variable type that holds the max temp can be that high...
firefly431
5th Oct 2011
Member
0
Permalink
It's not a variable. It's a constant (define). I modded the sources, but wifi.c (above) is still broken.
MasterMind555
5th Oct 2011
Member
0
Permalink
@firefly431
(View Post)
Oh right ( I never code C lol )
(int)(((parts[i].temp)-73.15f)/100.0f+1.0f);
Could the temp possibly be so high it does not fit in Int?
In what context did it broke? You just ran it or you messed with it?
firefly431
5th Oct 2011
Member
0
Permalink
It worked in portal
Jallibad
5th Oct 2011
Member
0
Permalink
@firefly431
(View Post)
it works with a max temp of 99999, so I think that your max temp is too high.
firefly431
5th Oct 2011
Member
0
Permalink
It worked for portal
Jallibad
5th Oct 2011
Member
0
Permalink
@firefly431
(View Post)
but it didn't work for wifi... wifi and portal have different codes you know
firefly431
5th Oct 2011
Member
0
Permalink
It works until the sprk hits the wifi
«
1
»