summaryrefslogtreecommitdiff
path: root/src/common.c
AgeCommit message (Collapse)Author
2012-04-03Massive coding style change.Andrey Nazarov
Use linux style brackets. Pad operators with spaces. Unpad parenthesis, except for ‘if’, ‘for’, ‘while’ constructs.
2011-12-18Fix line endings when writing text files on Win32.Andrey Nazarov
2011-12-15Add missing newline.Andrey Nazarov
2011-12-13Filter duplicates when completing command args.Andrey Nazarov
2011-05-30Execute postinit.cfg after startup.Andrey Nazarov
2011-05-30Don't print version twice on startup.Andrey Nazarov
Also print to stderr when called with ‘--version’ argument.
2011-05-26Improve client event loop.Andrey Nazarov
Execute command buffers directly inside CL_ProcessEvents. Break sub-msec spin loop when important event occurs.
2011-04-28Enhance demo seeking time specification.Andrey Nazarov
Extend syntax to allow for minutes, seconds and tenths of second to be specified. Allow for absolute positioning within demo file.
2011-04-26Poison memory block magic in Z_Free.Andrey Nazarov
2011-04-26Don't call Sys_DebugBreak on recursive error unless debugging.Andrey Nazarov
2011-04-22Reset Com_Printf recursion level in Com_Error.Andrey Nazarov
2011-04-22Abort console logging on write error.Andrey Nazarov
2011-04-22Add Com_HashStringLen function.Andrey Nazarov
2011-04-07Enable client downloads by default.Andrey Nazarov
2011-03-26Clean up and fix 32-bit color API.Andrey Nazarov
Make color_t a union to work around aliasing issues. Get rid of FastColorCopy macro in favor of direct assignment. Get rid of DRAW_COLOR_* macros in favor of separate APIs for clearing and setting 32-bit color and alpha values. Rename R_DrawFill/R_DrawFillEx into R_DrawFill8/R_DrawFill32 for consistency. Remove unused fields from laser_t struct. Fix 32-bit particles fading out too soon. Fix console text drawing with software renderer. Fix possible SCR_ParseColor buffer overflow.
2011-03-24Implement line buffered mode for logfiles.Andrey Nazarov
Replace FS_FLUSH_* flags with FS_BUF_* that allow more control on buffering mode. Setting ‘logfile_flush’ and ‘net_log_flush’ to 1 will now activate line buffered mode instead of unbuffered mode. Unbuffered mode is now activated with values 2 and higher.
2011-03-08Move all testing code into single file.Andrey Nazarov
Add wildcard pattern testing code and NX support testing code.
2011-03-03Allow backslash escapes in wildcard patterns.Andrey Nazarov
So that raw '*' and '?' characters can be matched.
2011-02-23Make CL_Disconnect receive only error type as an argument.Andrey Nazarov
2011-02-23Get rid of killtype_t enum.Andrey Nazarov
2011-02-23Get rid of ERR_SILENT.Andrey Nazarov
2011-02-07Rework the way FPU issues are handled on i386.Andrey Nazarov
Kill Sys_FixFPCW. Instead implement inline macros that wrap around critical sections of code (pmove and game library calls) and push/pop FPU control word dynamically.
2011-02-06Define PRODUCT string in upper case.Andrey Nazarov
Use it in the appropriate places.
2011-02-06Improve last error reporting.Andrey Nazarov
Implement Com_SetLastError and Com_GetLastError functions. Save the last error message passed to Com_LPrintf. Limit maximum error message size to 1024 chars.
2011-02-05Implement generic GL extension string parser.Andrey Nazarov
Split QGL_ParseExtensionString into Com_ParseExtensionString, to be shared between QGL and GLX/WGL subsystems.
2011-02-05Rename ‘com_local.h’ into ‘common.h’.Andrey Nazarov
2011-01-25Improve default startup action handling.Andrey Nazarov
For dedicated servers, don't print a warning if ‘dedicated_start’ alias is not defined. For graphical clients, check for ‘client_start’ alias in a similar way.
2011-01-25Re-exec ‘autoexec.cfg’ after gamedir change.Andrey Nazarov
Restrict ‘config.cfg’ and ‘autoexec.cfg’ to be real files within the game directory, don't search for them in packs. Split Cmd_Exec_f into Cmd_ExecuteFile utility function. Add more validity checks: oversize names, oversize files, exec loops. Make Sys_AddDefaultConfig omit the ‘Execing...’ line if the config file is empty.
2011-01-25Remove dangerous ‘setenv’ command.Andrey Nazarov
2011-01-14Comment out unused ByteToDir function.Andrey Nazarov
2010-12-16Avoid #ifdef checks for __unix__.Andrey Nazarov
Assume everything that isn't _WIN32 is Unix. Needed since some Unix systems don't define __unix__ (e.g. Mac OS X), and we don't support anything else anyway.
2010-11-14Fixed a warning when building dedicated server.Andrey Nazarov
2010-11-11Add support for non-blocking vertical retrace sync.Andrey Nazarov
- Move frametimes calculation code out of the main client loop. - Accumulate frametime residuals for physics and refresh. - Remove IO_Sleep call from the main client loop, integrate it with server sleeping code. - Support ‘GLX_SGI_video_sync’ extension in SDL video driver, add ‘gl_video_sync’ cvar for turning it on and off. - Add video syncing stubs for other video drivers. - Add new ‘cl_async’ mode 2 for enabling non-blocking vertical retrace syncing mode if supported by the video driver (GLX only for now).
2010-11-11Add PRINT_NOTICE constant, kill remaining S_COLOR_ macro users.Andrey Nazarov
2010-11-11Avoid calling localtime() too often since it is not that cheap.Andrey Nazarov
2010-10-09Avoid recursion in wildcard comparsion code.Andrey Nazarov
2010-10-05Moved MVD recording glue into the right place.Andrey Nazarov
Moved o_record struct into the server code. Added SV_Record_f/SV_Stop_f functions that call the needed handlers.
2010-10-05Clean up Com_FormatSize(Long).Andrey Nazarov
2010-10-01Renamed COM_FormatFileSize into Com_FormatSize, added longer variant.Andrey Nazarov
2010-10-01Renamed Com_HashPath into FS_HashPath.Andrey Nazarov
2010-10-01Made Com_TimeDiff autocorrect the passed value.Andrey Nazarov
2010-09-19Prevent missing prototype warnings.Andrey Nazarov
Marked some functions static. Moved some function prototypes into proper header files.
2010-09-15Renamed source tree subdirectory into ‘src’, moved ‘asm’ ↵Andrey Nazarov
subdirectory there and renamed it into ‘i386’.