summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eaa064a)
raw | patch | inline | side by side (parent: eaa064a)
author | fgsfds <pvt.fgsfds@gmail.com> | |
Wed, 7 Feb 2018 22:34:23 +0000 (01:34 +0300) | ||
committer | fgsfds <pvt.fgsfds@gmail.com> | |
Wed, 7 Feb 2018 22:34:23 +0000 (01:34 +0300) |
src/game/g_console.pas | patch | blob | history |
diff --git a/src/game/g_console.pas b/src/game/g_console.pas
index 2ae89e537b6e80fddf85cfb35d325fd530976569..3ed1d138818daa0cdb64e42251613634afc6ec5e 100644 (file)
--- a/src/game/g_console.pas
+++ b/src/game/g_console.pas
g_Console_Add('exec <script file>');
end;
+ if (cmd = 'ver') or (cmd = 'version') then
+ begin
+ conwriteln('Doom 2D: Forever v. ' + GAME_VERSION);
+ conwritefln('Net protocol v. %d', [NET_PROTOCOL_VER]);
+ conwritefln('Build date: %s at %s', [GAME_BUILDDATE, GAME_BUILDTIME]);
+ end;
+
if cmd = 'alias' then
begin
// alias [alias_name] [commands]
AddCommand('exec', ConsoleCommands);
AddCommand('alias', ConsoleCommands);
AddCommand('call', ConsoleCommands);
+ AddCommand('ver', ConsoleCommands);
+ AddCommand('version', ConsoleCommands);
AddCommand('d_window', DebugCommands);
AddCommand('d_sounds', DebugCommands);