Login
User Name:

Password:



Register

Forgot your password?
void nanny_get_new_race -- comm.c
Feb 16, 2025 1:25 am
By Elwood
IPv6
Jan 25, 2025 10:45 pm
By Samson
mudstrlcpy and mudstrlcat
Jan 18, 2025 5:23 pm
By Samson
I3 and IMC
Jan 17, 2025 9:35 pm
By Samson
AFKMud 2.5.1
Jan 17, 2025 2:22 pm
By Samson
SmaugFUSS 1.9.7
Author: Various
Submitted by: Samson
AFKMud 2.5.1
Author: AFKMud Team
Submitted by: Samson
Kayle's Weather Code for AFKMud
Author: Kayle
Submitted by: Samson
AFKMud 2.5.0
Author: AFKMud Team
Submitted by: Samson
SWFotEFUSS 1.5.2
Author: Various
Submitted by: Samson
Users Online
CommonCrawl, AhrefsBot, Google

Members: 0
Guests: 12
Stats
Files
Topics
Posts
Members
Newest Member
503
3,812
19,715
590
iasiney

» SmaugMuds » Codebases » SmaugFUSS » time_update
Forum Rules | Mark all | Recent Posts

time_update
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jan 12, 2025 11:17 am   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,992
JoinedJul 26, 2005

 
If you take a look at time_update in update.c you'll notice they are using the sysdata stuff at the top but not in the switching of the hours inside the function.

Post is unread #2 Jan 12, 2025 12:53 pm   
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,706
JoinedJan 1, 2002

 
I think that was because of horseshit like this from the compiler:

update.c: In function ‘void time_update()’:
update.c:2372:21: error: the value of ‘sysdata’ is not usable in a constant expression
 2372 |                case sysdata.hourdaybegin:
      |                     ^~~~~~~


It didn't like using things such as "sysdata.hourdaybegin" in the switch block, but magically somehow it's ok with using it in a set of if blocks. So it'll be if blocks now :P

Post is unread #3 Jan 12, 2025 4:11 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,992
JoinedJul 26, 2005

 
lol dont you love how crazy it acts sometimes.

Post is unread #4 Jan 12, 2025 9:44 pm   
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,706
JoinedJan 1, 2002

 
Indeed, either way, good catch. I bet that's why we left it like it was at the time that code was added to the base. It's not native Smaug.

Post is unread #5 Jan 12, 2025 9:53 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,992
JoinedJul 26, 2005

 
yeah I noticed lol. I only seen it because I spent all day adding it into LOP and then I was looking around to see maybe where it came from found the snippet for it and while reading it I was like blah i don't feel like getting permission so I did a difference of my code and the one i last released and added all the changes not weather related back in lol just finished doing all that.

Pages:<< prev 1 next >>