diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-11-05 17:34:45 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-11-05 17:34:45 +0000 |
commit | 6c2e5c769c9e0150da3ee9a2d17ad4bbc5db1e03 (patch) | |
tree | 6a454dd44479d287cbde80c2f02c4b2514f7fe3c | |
parent | 00192556ea8e4e8eb13e59b35abcd6d994368e22 (diff) | |
download | mana-client-6c2e5c769c9e0150da3ee9a2d17ad4bbc5db1e03.tar.gz mana-client-6c2e5c769c9e0150da3ee9a2d17ad4bbc5db1e03.tar.bz2 mana-client-6c2e5c769c9e0150da3ee9a2d17ad4bbc5db1e03.tar.xz mana-client-6c2e5c769c9e0150da3ee9a2d17ad4bbc5db1e03.zip |
*** empty log message ***
-rw-r--r-- | src/game.cpp | 48 | ||||
-rw-r--r-- | src/main.cpp | 36 | ||||
-rw-r--r-- | src/main.h | 4 | ||||
-rw-r--r-- | tmw.ini | 1 |
4 files changed, 48 insertions, 41 deletions
diff --git a/src/game.cpp b/src/game.cpp index 5f908289..ec71c09f 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -2,27 +2,27 @@ The Mana World Copyright 2004 The Mana World Development Team - This file is part of The Mana World. - - The Mana World is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - any later version. - - The Mana World is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with The Mana World; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - By ElvenProgrammer aka Eugenio Favalli (umperio@users.upagiro.net) - - kth5 aka Alexander Baldeck - - SimEdw + This file is part of The Mana World. + + The Mana World is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + any later version. + + The Mana World is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with The Mana World; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + By ElvenProgrammer aka Eugenio Favalli (umperio@users.upagiro.net) + + kth5 aka Alexander Baldeck + + SimEdw */ @@ -594,18 +594,18 @@ void do_parse() { } break; // Stop walking - case 0x0088: // Disabled because giving some problems + /*case 0x0088: // Disabled because giving some problems if(node = find_node(RFIFOL(2))) { //if(node->id!=player_node->id) { /*char ids[20]; sprintf(ids,"%i",RFIFOL(2)); alert(ids,"","","","",0,0);*/ - node->action = STAND; + /*node->action = STAND; node->frame = 0; set_coordinates(node->coordinates, RFIFOW(6), RFIFOW(8), get_direction(node->coordinates)); //} } - break; + break;*/ // Damage, sit, stand up case 0x008a: switch(RFIFOB(26)) { diff --git a/src/main.cpp b/src/main.cpp index abc67679..5411866e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2,22 +2,22 @@ The Mana World Copyright 2004 The Mana World Development Team - - This file is part of The Mana World. - - The Mana World is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - any later version. - - The Mana World is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with The Mana World; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + This file is part of The Mana World. + + The Mana World is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + any later version. + + The Mana World is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with The Mana World; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ @@ -57,10 +57,12 @@ void request_exit() { /** Do all initialization stuff */ void init_engine() { - allegro_init(); + allegro_init(); init_log(); set_close_button_callback(request_exit); // we should not use set_window_close_hook() since it's deprecated and might be gone in the future /-kth5 set_config_file("tmw.ini"); + if(strcmp(get_config_string("system", "core_version", NULL), CORE_VERSION)!=0) + error("Wrong INI file"); #ifdef MACOSX set_color_depth(32); Init_2xSaI(32); @@ -1,5 +1,7 @@ /* + + The Mana World Copyright 2004 The Mana World Development Team @@ -28,6 +30,8 @@ #ifndef _MAIN_H #define _MAIN_H +#define CORE_VERSION "0.0.8" + #include <stdio.h> #include <allegro.h> #include <alfont.h> @@ -3,6 +3,7 @@ system = keyboard = en language = version = 0.1 +core_version = 0.0.8 [server] host = animesites.de |