hedgewars/hwengine.dpr
changeset 756 2b307457fd68
parent 753 40fc0deb388f
child 762 5ecf042f6113
equal deleted inserted replaced
755:edf26e9554ac 756:2b307457fd68
    99               FinishProgress;
    99               FinishProgress;
   100               GameState:= gsGame
   100               GameState:= gsGame
   101               end;
   101               end;
   102      gsGame : begin
   102      gsGame : begin
   103               ProcessKbd;
   103               ProcessKbd;
   104               glClear(GL_COLOR_BUFFER_BIT);
       
   105               DoGameTick(Lag);
   104               DoGameTick(Lag);
   106               DrawWorld(Lag, SDLPrimSurface);
   105               DrawWorld(Lag, SDLPrimSurface);
   107               end;
   106               end;
   108    gsConsole: begin
   107    gsConsole: begin
   109               DoGameTick(Lag);
   108               DoGameTick(Lag);
   110               glClear(GL_COLOR_BUFFER_BIT);
       
   111 //              DrawWorld(Lag, SDLPrimSurface);
   109 //              DrawWorld(Lag, SDLPrimSurface);
   112 //              DrawConsole(SDLPrimSurface);
   110 //              DrawConsole(SDLPrimSurface);
   113               end;
   111               end;
   114      gsExit : begin
   112      gsExit : begin
   115               OnDestroy;
   113               OnDestroy;