mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
o Now we can also build FUNCTIONAL Polish version with VS 2005 instead of only building with VS 2008/VS 2010 - Multiplayer fixes and improvements o Increased MP version to v1.9 o Added and info output text when the AI interrupts the pure client, that the game could hang and the server should press ALT + E o Disabled the possibility, that the server could always give himself the turn with ALT + E. Now when pressing '1' on the dialog instead of giving the server the turn, the dialog closes without any action o Disabled the possibility, that the server could kick himself from the game when pressing ALT + K and then selecting '1'. The '1' button now cancels the dialog without doing any action. o Disabled the possibility, that the server could kick a client in the strategy screen o When client gets kicked from tactical, the game automatically switches to spectator mode for the kicked client o Disabled Encyclopedia and Briefing room links from the laptop git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4692 3b4a5df2-a311-0410-b5c6-a8a6f20db521
65 lines
2.8 KiB
C
65 lines
2.8 KiB
C
#ifndef __LANGUAGE_DEFINES_H
|
|
#define __LANGUAGE_DEFINES_H
|
|
|
|
#pragma once
|
|
|
|
/* ============================================================================
|
|
* ONLY ONE OF THESE LANGUAGES CAN BE DEFINED AT A TIME!
|
|
* BUT now You can define it _here_ by uncommenting one _or_ (better):
|
|
* You can comment them all out and then set it _global_ in "Preprocessor
|
|
* options" (do it for ALL projects in the workspace and both debug & release)
|
|
* _or_
|
|
* give it do Your MAKEFILE, f.i. make ENGLISH, but keep in mind that some
|
|
* weird make tools will require 'make ENGLISH=1' instead
|
|
*
|
|
* using one of the two later methods will keep this SVN file unchanged for the
|
|
* future, only Your private project files (workspace/solution) will differ
|
|
* from the SVN stuff.
|
|
* (2006-10-10, Sergeant_Kolja)
|
|
*/
|
|
|
|
|
|
#if !defined(ENGLISH) && !defined(GERMAN) && !defined(RUSSIAN) && !defined(DUTCH) && !defined(POLISH) && !defined(FRENCH) && !defined(ITALIAN) && !defined(TAIWANESE) && !defined(CHINESE)
|
|
/* please set one manually here (by uncommenting) if not willingly to set Workspace wide */
|
|
|
|
#define ENGLISH
|
|
//#define GERMAN
|
|
//#define RUSSIAN
|
|
//#define DUTCH
|
|
//#define FRENCH
|
|
//#define ITALIAN
|
|
//#define TAIWANESE
|
|
|
|
// WANNE: The pragma and the exclusive VS2008/VS2010 compilation should not be needed anymore for Polish version, after we set the encoding to UTF8
|
|
// WANNE: If we like to build Polish version, we have to do this in VS2008/VS2010, because in VS2005 we get weird behavior (progress bar not moving when loading sector, ...).
|
|
// To get correct display of Polish letters, it is needed to set "#pragma setlocale("POLISH")" in "_PolishText.cpp" and "_"Ja25PolishText.cpp.
|
|
// Unfortunatelly setting the "pragma" causes the weird behavior when building in VS2005, this is why we should build in VS2008/VS2010.
|
|
//#define POLISH
|
|
|
|
// WANNE: For CHINESE language we also have to define WINFONTS! So when building Chinese version, enable both defines.
|
|
//#define CHINESE
|
|
//#define WINFONTS
|
|
|
|
#endif
|
|
|
|
//**ddd direct link libraries
|
|
#pragma comment (lib, "user32.lib")
|
|
#pragma comment (lib, "gdi32.lib")
|
|
#pragma comment (lib, "advapi32.lib")
|
|
#pragma comment (lib, "shell32.lib")
|
|
|
|
/* ====================================================================
|
|
* Regardless of if we did it Workspace wide or by uncommenting above,
|
|
* HERE we must see, what language was selected. If one, we
|
|
*/
|
|
#if !defined(ENGLISH) && !defined(GERMAN) && !defined(RUSSIAN) && !defined(DUTCH) && !defined(POLISH) && !defined(FRENCH) && !defined(ITALIAN) && !defined(TAIWANESE) && !defined(CHINESE)
|
|
# error "At least You have to specify a Language somewhere. See comments above."
|
|
#endif
|
|
|
|
//if the language represents words as single chars
|
|
#ifdef TAIWAN
|
|
#define SINGLE_CHAR_WORDS
|
|
#endif
|
|
|
|
#endif
|