- Files:
-
- 8 added
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
/abuse/trunk/src/include/compiled.hpp
r30 r20 2 2 #define __COMPILED_HPP_ 3 3 #include "macs.hpp" 4 extern int32_tS_fall_start,S_falling,S_landing,S_pounce_wait,4 extern long S_fall_start,S_falling,S_landing,S_pounce_wait, 5 5 S_turn_around,S_fire_wait,S_ceil_fire,S_top_walk, 6 6 S_blown_back_dead,S_jump_up,S_hiding,S_weapon_fire, -
/abuse/trunk/src/include/stack.hpp
r30 r20 15 15 T **sdata; 16 16 long son; 17 long smax;18 17 19 grow_stack(int max_size) { 20 smax=max_size; 21 son=0; 22 sdata=(T **)jmalloc(sizeof(T *)*smax,"pointer stack"); 23 } 18 grow_stack(int max_size) { sdata=(T **)jmalloc(max_size,"pointer stack"); son=0; } 24 19 void push(T *data) 25 20 { 26 if (son>=smax) { lbreak("stack overflow (%ld)\n",smax); exit(1); }27 21 sdata[son]=data; 28 22 son++; … … 30 24 31 25 T *pop(long total) 32 { if (total>son) { lbreak("stack underflow\n"); exit( 1); }26 { if (total>son) { lbreak("stack underflow\n"); exit(0); } 33 27 son-=total; 34 28 return sdata[son]; -
/abuse/trunk/src/sdlport/event.cpp
r30 r20 150 150 case SDL_QUIT: 151 151 { 152 exit(0); 152 if( the_game->state == RUN_STATE ) 153 { 154 // We're in the actual game so just confirm the user 155 // wishes to quit and exit the game. 156 if( confirm_quit() ) 157 { 158 the_game->end_session(); 159 } 160 } 161 else 162 { 163 // We're at the menu screen so simluate the user 164 // pressing the ESC key. 165 ev.type = EV_KEY; 166 ev.key = JK_ESC; 167 } 153 168 break; 154 169 } -
/abuse/trunk/src/version.cpp
r30 r20 1 #include "dprint.hpp" 1 2 #include <stdio.h> 3 #include "macs.hpp" 2 4 #include <string.h> 3 #include "dprint.hpp"4 #include "macs.hpp"5 5 6 6 uint8_t major_version=2;
Note: See TracChangeset
for help on using the changeset viewer.