Conversation
Notices
-
Embed this notice
:umu: :umu: (a1ba@suya.place)'s status on Tuesday, 10-Jun-2025 23:14:13 JST
:umu: :umu:
```
fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);
nostdout = Cvar_Get("nostdout", "0", 0);
if (!nostdout->value) {
fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);
}
```
I'm thinking about this piece of code present in Quake 2 but not in Quake III too much.
What did they wanted to say...-
Embed this notice
TTimo (ttimo@mastodon.social)'s status on Tuesday, 10-Jun-2025 23:14:11 JST
TTimo
@a1ba so someone goofed of course, but maybe the original version was meant to either close stdout (redirect to /dev/null), or put stdin into non blocking to essentially make a console out of your terminal.
-
Embed this notice
TTimo (ttimo@mastodon.social)'s status on Tuesday, 10-Jun-2025 23:14:11 JST
TTimo
@a1ba the quake 3 code had a lot of goofy stuff and sharp edges, when id passed it over to me I spent the first few months cleaning up compiler warnings.
It was a good way to familiarize with it, but I don't remember running into this.
Haelwenn /элвэн/ :triskell: likes this. -
Embed this notice
TTimo (ttimo@mastodon.social)'s status on Tuesday, 10-Jun-2025 23:14:12 JST
TTimo
@a1ba most interesting! And I assume there is no good version of this in quake 1 either? But it can be found in common code?
In conversation permalink -
Embed this notice
Daniel Gibson (doomed_daniel@mastodon.gamedev.place)'s status on Friday, 13-Jun-2025 07:50:07 JST
Daniel Gibson
@TTimo @a1ba
> I spent the first few months cleaning up compiler warningsthe universal experience of throwing code written in Visual Studio at a real compiler :-D
In conversation permalink Haelwenn /элвэн/ :triskell: likes this.
-
Embed this notice