Login
User Name:

Password:



Register

Forgot your password?
 AFKMud 2.5.0
Jan 14, 2025 3:27 pm
By Samson
time_update
Jan 12, 2025 9:53 pm
By Remcon
pwd memory leak
Jan 11, 2025 6:31 pm
By Samson
AFKMud 2.2.5
Jan 8, 2025 5:04 pm
By Samson
sting skill
Jan 8, 2025 2:40 pm
By Samson
AFKMud 2.5.0
Author: AFKMud Team
Submitted by: Samson
SWFotEFUSS 1.5.2
Author: Various
Submitted by: Samson
SWRFUSS 1.4.2
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.6
Author: Various
Submitted by: Samson
AFKMud 2.2.5
Author: AFKMud Team
Submitted by: Samson
Users Online
Anthropic, Bing, Google, AhrefsBot, Bytespider

Members: 0
Guests: 3
Stats
Files
Topics
Posts
Members
Newest Member
500
3,823
19,772
590
SandraLymb

» 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,994
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,721
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,994
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,721
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,994
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 >>